summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgoptions.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-11-12 18:00:55 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-11-12 18:00:55 +0300
commit744dda0a74a4afa69bb2e27088f1c0f01a8891d9 (patch)
tree0d260fc4dd522f8869adcd96a4039c5f65f4d132 /plugins/TabSRMM/src/msgoptions.cpp
parentf7bbaf7fd984d26dbc150d9743aa14cd5dd23a8c (diff)
SRMM options unification
Diffstat (limited to 'plugins/TabSRMM/src/msgoptions.cpp')
-rw-r--r--plugins/TabSRMM/src/msgoptions.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/msgoptions.cpp b/plugins/TabSRMM/src/msgoptions.cpp
index 10f6d5a091..aec3b0b1c3 100644
--- a/plugins/TabSRMM/src/msgoptions.cpp
+++ b/plugins/TabSRMM/src/msgoptions.cpp
@@ -799,7 +799,7 @@ public:
bool OnInitDialog() override
{
- switch (g_plugin.getByte(SRMSGSET_LOADHISTORY, SRMSGDEFSET_LOADHISTORY)) {
+ switch (Srmm::iHistoryMode) {
case LOADHISTORY_UNREAD:
chkLoadUnread.SetState(true);
break;
@@ -827,11 +827,12 @@ public:
bool OnApply() override
{
if (chkLoadCount.GetState())
- g_plugin.setByte(SRMSGSET_LOADHISTORY, LOADHISTORY_COUNT);
+ Srmm::iHistoryMode = LOADHISTORY_COUNT;
else if (chkLoadTime.GetState())
- g_plugin.setByte(SRMSGSET_LOADHISTORY, LOADHISTORY_TIME);
+ Srmm::iHistoryMode = LOADHISTORY_TIME;
else
- g_plugin.setByte(SRMSGSET_LOADHISTORY, LOADHISTORY_UNREAD);
+ Srmm::iHistoryMode = LOADHISTORY_UNREAD;
+
g_plugin.setWord(SRMSGSET_LOADCOUNT, spnLoadCount.GetPosition());
g_plugin.setWord(SRMSGSET_LOADTIME, spnLoadTime.GetPosition());