Skip to content

Commit

Permalink
Commands are now saved upon pressing Ok in the settings window (Chatt…
Browse files Browse the repository at this point in the history
…erino#2016)

Commands are now saved upon pressing the Ok Button in the settings window, similar to the rest of the settings.
  • Loading branch information
gempir authored Oct 4, 2020
1 parent a2e12a5 commit 80e84b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,8 @@ rapidjson/*

Thumbs.db

#I HATE MAC
# I HATE MAC
.DS_Store

# Other editors/IDEs
.vscode
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/widgets/dialogs/SettingsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -318,6 +319,7 @@ void SettingsDialog::onOkClicked()
{
if (!getArgs().dontSaveSettings)
{
getApp()->commands->save();
pajlada::Settings::SettingManager::gSave();
}
this->close();
Expand Down

0 comments on commit 80e84b1

Please sign in to comment.