mirror of https://github.com/OpenVPN/openvpn-gui
RTL alignment in PLAP task dialog
Signed-off-by: Selva Nair <selva.nair@gmail.com>pull/556/head
parent
8721cb60c8
commit
1663417b63
|
@ -28,6 +28,7 @@
|
|||
#include "plap_dll.h"
|
||||
#include <assert.h>
|
||||
#include "resource.h"
|
||||
#include "localization.h"
|
||||
|
||||
/* A "class" that implements IConnectableCredentialProviderCredential */
|
||||
|
||||
|
|
|
@ -501,10 +501,14 @@ RunProgressDialog(connection_t *c, PFTASKDIALOGCALLBACK cb_fn, LONG_PTR cb_data)
|
|||
{
|
||||
dmsg(L"Entry with profile = <%ls>", c->config_name);
|
||||
|
||||
const TASKDIALOG_FLAGS flags = TDF_SHOW_MARQUEE_PROGRESS_BAR|TDF_CALLBACK_TIMER|TDF_USE_HICON_MAIN;
|
||||
TASKDIALOG_FLAGS flags = TDF_SHOW_MARQUEE_PROGRESS_BAR|TDF_CALLBACK_TIMER|TDF_USE_HICON_MAIN;
|
||||
wchar_t main_text[256];
|
||||
wchar_t details_btn_text[256];
|
||||
|
||||
if (LangFlowDirection() == 1)
|
||||
{
|
||||
flags |= TDF_RTL_LAYOUT;
|
||||
}
|
||||
_sntprintf_0(main_text, L"%ls %ls", LoadLocalizedString(IDS_MENU_CONNECT), c->config_name);
|
||||
LoadLocalizedStringBuf(details_btn_text, _countof(main_text), IDS_MENU_STATUS);
|
||||
|
||||
|
|
Loading…
Reference in New Issue