summaryrefslogtreecommitdiff
path: root/plugins/New_GPG/src/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-12-01 16:12:15 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-12-01 16:13:09 +0300
commite839cc256aeed406feb7a78dff2f45a2ae7b6385 (patch)
tree56818bb6a278fe51d229ba3db85e0ba6860f6d01 /plugins/New_GPG/src/main.cpp
parent4d30ea7bc3eadfa252766c559feb7a00d006dcc7 (diff)
new_gpg: porting to new ui api (part2)
Diffstat (limited to 'plugins/New_GPG/src/main.cpp')
-rwxr-xr-xplugins/New_GPG/src/main.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/New_GPG/src/main.cpp b/plugins/New_GPG/src/main.cpp
index 26f56ed27f..874418587e 100755
--- a/plugins/New_GPG/src/main.cpp
+++ b/plugins/New_GPG/src/main.cpp
@@ -28,7 +28,12 @@ HWND hwndFirstRun = nullptr, hwndSetDirs = nullptr, hwndNewKey = nullptr, hwndKe
int itemnum = 0;
HWND hwndList_g = nullptr;
-BOOL CheckStateStoreDB(HWND hwndDlg, int idCtrl, const char* szSetting);
+BOOL CheckStateStoreDB(HWND hwndDlg, int idCtrl, const char* szSetting)
+{
+ BOOL state = IsDlgButtonChecked(hwndDlg, idCtrl);
+ db_set_b(NULL, szGPGModuleName, szSetting, (BYTE)state);
+ return state;
+}
wchar_t key_id_global[17] = { 0 };
@@ -348,10 +353,10 @@ static INT_PTR CALLBACK DlgProcFirstRun(HWND hwndDlg, UINT uMsg, WPARAM wParam,
break;
case IDC_OTHER:
{
- void ShowLoadPublicKeyDialog();
+ void ShowLoadPublicKeyDialog(bool = false);
item_num = 0; //black magic here
user_data[1] = 0;
- ShowLoadPublicKeyDialog();
+ ShowLoadPublicKeyDialog(true);
ListView_DeleteAllItems(hwndList);
{
int i = 1, iRow = 0;