summaryrefslogtreecommitdiff
path: root/plugins/New_GPG/src/ui.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-03-18 15:56:27 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-03-18 15:56:27 +0300
commit5f7e5caff72b4ce876c70b4ce03ff3b4c7bc6528 (patch)
tree739f255f2647ea2b7a8803e802ffd496d519ea04 /plugins/New_GPG/src/ui.cpp
parent4be051a155c0fbc47c1e0eab75da6b4ba8bb2327 (diff)
NewGPG: options implemented using CMOption
Diffstat (limited to 'plugins/New_GPG/src/ui.cpp')
-rwxr-xr-xplugins/New_GPG/src/ui.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/plugins/New_GPG/src/ui.cpp b/plugins/New_GPG/src/ui.cpp
index f3fcda137d..a09a973a1c 100755
--- a/plugins/New_GPG/src/ui.cpp
+++ b/plugins/New_GPG/src/ui.cpp
@@ -36,10 +36,9 @@ CDlgEncryptedFileMsgBox::CDlgEncryptedFileMsgBox() :
void CDlgEncryptedFileMsgBox::onClick_IGNORE(CCtrlButton*)
{
- if (chk_REMEMBER.GetState()) {
- g_plugin.setByte("bSameAction", 1);
- globals.bSameAction = true;
- }
+ if (chk_REMEMBER.GetState())
+ g_plugin.bSameAction = true;
+
this->Close();
}
@@ -47,10 +46,8 @@ void CDlgEncryptedFileMsgBox::onClick_DECRYPT(CCtrlButton*)
{
globals.bDecryptFiles = true;
if (chk_REMEMBER.GetState()) {
- g_plugin.setByte("bFileTransfers", 1);
- globals.bFileTransfers = true;
- g_plugin.setByte("bSameAction", 0);
- globals.bSameAction = false;
+ g_plugin.bFileTransfers = true;
+ g_plugin.bSameAction = false;
}
this->Close();
}
@@ -782,7 +779,7 @@ void CDlgGpgBinOpts::onClick_GENERATE_RANDOM(CCtrlButton*)
gpg_save_paths(edit_BIN_PATH.GetText(), edit_HOME_DIR.GetText());
globals.gpg_valid = true;
if (gpg_use_new_random_key(nullptr)) {
- g_plugin.setByte("bAutoExchange", globals.bAutoExchange = chk_AUTO_EXCHANGE.GetState());
+ g_plugin.bAutoExchange = chk_AUTO_EXCHANGE.GetState();
globals.gpg_valid = true;
g_plugin.setByte("FirstRun", 0);
this->Close();