summaryrefslogtreecommitdiff
path: root/plugins/StartPosition/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/StartPosition/src')
-rw-r--r--plugins/StartPosition/src/options.cpp6
-rw-r--r--plugins/StartPosition/src/options.h4
2 files changed, 6 insertions, 4 deletions
diff --git a/plugins/StartPosition/src/options.cpp b/plugins/StartPosition/src/options.cpp
index cdc56bf45a..ac9991cbdb 100644
--- a/plugins/StartPosition/src/options.cpp
+++ b/plugins/StartPosition/src/options.cpp
@@ -49,7 +49,7 @@ COptionsDlg::COptionsDlg() :
chkStartState.OnChange = Callback(this, &COptionsDlg::onCheck_StartState);
}
-void COptionsDlg::OnInitDialog()
+bool COptionsDlg::OnInitDialog()
{
if (g_plugin.spOptions.clistState == ClistState::normal)
chkStartNormal.SetState(true);
@@ -71,9 +71,10 @@ void COptionsDlg::OnInitDialog()
edtPositionBottom.Enable(chkPositionBottom.GetState());
edtPositionSide.Enable(chkPositionSide.GetState());
edtWidth.Enable(chkWidth.GetState());
+ return true;
}
-void COptionsDlg::OnApply()
+bool COptionsDlg::OnApply()
{
removeOldSettings();
@@ -86,6 +87,7 @@ void COptionsDlg::OnApply()
g_plugin.spOptions.clistAlign = ClistAlign::right;
else
g_plugin.spOptions.clistAlign = ClistAlign::left;
+ return true;
}
void COptionsDlg::removeOldSettings()
diff --git a/plugins/StartPosition/src/options.h b/plugins/StartPosition/src/options.h
index 26e922cf11..f8d0abd5a4 100644
--- a/plugins/StartPosition/src/options.h
+++ b/plugins/StartPosition/src/options.h
@@ -79,8 +79,8 @@ class COptionsDlg : public CDlgBase
public:
COptionsDlg();
- void OnInitDialog() override;
- void OnApply() override;
+ bool OnInitDialog() override;
+ bool OnApply() override;
private:
void removeOldSettings();