Add "apply" button to options window

This commit is contained in:
Ying-Ruei Liang (KK) 2015-12-20 23:58:25 +08:00
parent fcbb364085
commit 1cf82697ef
2 changed files with 4 additions and 0 deletions

View File

@ -164,6 +164,7 @@
<boxfiller />
<hbox homogeneous="true">
<button text="&amp;OK" closewindow="true" id="button_ok" magnet="true" width="60" />
<button text="&amp;Apply" id="button_apply" width="60" />
<button text="&amp;Cancel" closewindow="true" />
</hbox>
</hbox>

View File

@ -164,6 +164,9 @@ public:
selectTheme()->Click.connect(base::Bind<void>(&OptionsWindow::onSelectTheme, this));
openThemeFolder()->Click.connect(base::Bind<void>(&OptionsWindow::onOpenThemeFolder, this));
// Apply button
buttonApply()->Click.connect(base::Bind<void>(&OptionsWindow::saveConfig, this));
onChangeGridScope();
sectionListbox()->selectIndex(m_curSection);
}