diff options
Diffstat (limited to 'plugins/TabSRMM/src/msgoptions.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgoptions.cpp | 9 |
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());
|