Commands are now saved upon pressing Ok in the settings window (#2016)

Commands are now saved upon pressing the Ok Button in the settings window, similar to the rest of the settings.
This commit is contained in:
gempir
2020-10-04 13:02:29 +02:00
committed by GitHub
parent a2e12a56e3
commit 80e84b1d8a
3 changed files with 7 additions and 1 deletions
+2
View File
@@ -2,6 +2,7 @@
#include "Application.hpp"
#include "common/Args.hpp"
#include "controllers/commands/CommandController.hpp"
#include "singletons/Resources.hpp"
#include "util/LayoutCreator.hpp"
#include "util/Shortcut.hpp"
@@ -318,6 +319,7 @@ void SettingsDialog::onOkClicked()
{
if (!getArgs().dontSaveSettings)
{
getApp()->commands->save();
pajlada::Settings::SettingManager::gSave();
}
this->close();