From 80e84b1d8a1ed90b70a83485984a0c63d698adf9 Mon Sep 17 00:00:00 2001 From: gempir Date: Sun, 4 Oct 2020 13:02:29 +0200 Subject: [PATCH] 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. --- .gitignore | 5 ++++- CHANGELOG.md | 1 + src/widgets/dialogs/SettingsDialog.cpp | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 55f446f34..e7cec67bb 100644 --- a/.gitignore +++ b/.gitignore @@ -73,5 +73,8 @@ rapidjson/* Thumbs.db -#I HATE MAC +# I HATE MAC .DS_Store + +# Other editors/IDEs +.vscode diff --git a/CHANGELOG.md b/CHANGELOG.md index 52fd824c7..af00c80f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Minor: Changed the English in two rate-limited system messages (#1878) - Minor: Added image for streamer mode in the user popup icon. - Minor: Added vip and unvip buttons. +- Minor: Commands are now saved upon pressing Ok in the settings window - Minor: Colorized nicknames now enabled by default - Minor: Show channels live now enabled by default - Minor: Bold usernames enabled by default diff --git a/src/widgets/dialogs/SettingsDialog.cpp b/src/widgets/dialogs/SettingsDialog.cpp index 3da3e3aa9..f972efaf5 100644 --- a/src/widgets/dialogs/SettingsDialog.cpp +++ b/src/widgets/dialogs/SettingsDialog.cpp @@ -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();