diff options
author | George Hazan <ghazan@miranda.im> | 2023-03-13 13:30:30 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-03-13 13:30:30 +0300 |
commit | 933930da6d8b0bc185c3675b38be044036698515 (patch) | |
tree | ba0d7b1f3ccc048601a33d4c002e8c06611003e6 /plugins/Sessions/Src | |
parent | 8738695c3edda06ab609855bee764e83f5bf3712 (diff) |
fixes #3421 (Sessions: опция "только если доступна последняя сессия" ведёт себя странно)
Diffstat (limited to 'plugins/Sessions/Src')
-rw-r--r-- | plugins/Sessions/Src/Options.cpp | 17 | ||||
-rw-r--r-- | plugins/Sessions/Src/version.h | 2 |
2 files changed, 6 insertions, 13 deletions
diff --git a/plugins/Sessions/Src/Options.cpp b/plugins/Sessions/Src/Options.cpp index 4ecbc0f9aa..b2f7a8d492 100644 --- a/plugins/Sessions/Src/Options.cpp +++ b/plugins/Sessions/Src/Options.cpp @@ -215,10 +215,8 @@ public: if (startupmode == 1)
chkStartDialog.SetState(true);
- else if (startupmode == 3) {
- chkStartDialog.SetState(true);
+ else if (startupmode == 3)
chkLast.SetState(true);
- }
else if (startupmode == 2)
chkLoadLast.SetState(true);
else if (startupmode == 0)
@@ -263,12 +261,10 @@ public: else if (chkExitAsk.IsChecked())
g_plugin.setByte("ShutdownMode", 1);
- if (chkStartDialog.IsChecked()) {
- if (chkLast.IsChecked())
- g_plugin.setByte("StartupMode", 1);
- else
- g_plugin.setByte("StartupMode", 3);
- }
+ if (chkStartDialog.IsChecked())
+ g_plugin.setByte("StartupMode", 1);
+ else if (chkLast.IsChecked())
+ g_plugin.setByte("StartupMode", 3);
else if (chkLoadLast.IsChecked())
g_plugin.setByte("StartupMode", 2);
else if (chkNothing.IsChecked())
@@ -427,7 +423,6 @@ public: EnableWindow(GetDlgItem(m_hwnd, IDC_STARTDELAY), TRUE);
EnableWindow(GetDlgItem(m_hwnd, IDC_STATICOP), TRUE);
EnableWindow(GetDlgItem(m_hwnd, IDC_STATICMS), TRUE);
- chkLast.Enable();
}
void onChange_LoadLast(CCtrlCheck *pCheck)
@@ -437,7 +432,6 @@ public: EnableWindow(GetDlgItem(m_hwnd, IDC_STARTDELAY), TRUE);
EnableWindow(GetDlgItem(m_hwnd, IDC_STATICOP), TRUE);
EnableWindow(GetDlgItem(m_hwnd, IDC_STATICMS), TRUE);
- chkLast.Disable();
}
void onChange_Nothing(CCtrlCheck *pCheck)
@@ -447,7 +441,6 @@ public: EnableWindow(GetDlgItem(m_hwnd, IDC_STARTDELAY), FALSE);
EnableWindow(GetDlgItem(m_hwnd, IDC_STATICOP), FALSE);
EnableWindow(GetDlgItem(m_hwnd, IDC_STATICMS), FALSE);
- chkLast.Disable();
}
void onChange_ExSave(CCtrlCheck *pCheck)
diff --git a/plugins/Sessions/Src/version.h b/plugins/Sessions/Src/version.h index 99c74d5e37..f16c634fe3 100644 --- a/plugins/Sessions/Src/version.h +++ b/plugins/Sessions/Src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 2
#define __RELEASE_NUM 0
-#define __BUILD_NUM 1
+#define __BUILD_NUM 2
#include <stdver.h>
|