Merge branch 'applyButton' of https://github.com/TheKK/aseprite into apply-button

This commit is contained in:
David Capello 2016-06-14 09:23:26 -03:00
commit e353cdae4c
2 changed files with 4 additions and 0 deletions

View File

@ -183,6 +183,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" />
<button text="&amp;Cancel" closewindow="true" />
</hbox>
</hbox>

View File

@ -190,6 +190,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);
}