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/Options.cpp | |
parent | 8738695c3edda06ab609855bee764e83f5bf3712 (diff) |
fixes #3421 (Sessions: опция "только если доступна последняя сессия" ведёт себя странно)
Diffstat (limited to 'plugins/Sessions/Src/Options.cpp')
-rw-r--r-- | plugins/Sessions/Src/Options.cpp | 17 |
1 files changed, 5 insertions, 12 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)
|