fix: Fixed account switch not being saved if no other settings were changed (#5558)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "controllers/accounts/AccountController.hpp"
|
||||
#include "providers/twitch/TwitchAccount.hpp"
|
||||
#include "providers/twitch/TwitchCommon.hpp"
|
||||
#include "singletons/Settings.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
@@ -54,6 +55,8 @@ AccountSwitchWidget::AccountSwitchWidget(QWidget *parent)
|
||||
{
|
||||
app->getAccounts()->twitch.currentUsername = newUsername;
|
||||
}
|
||||
|
||||
getSettings()->requestSave();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -435,8 +435,10 @@ void SettingsDialog::onOkClicked()
|
||||
if (!getApp()->getArgs().dontSaveSettings)
|
||||
{
|
||||
getApp()->getCommands()->save();
|
||||
pajlada::Settings::SettingManager::gSave();
|
||||
}
|
||||
|
||||
getSettings()->requestSave();
|
||||
|
||||
this->close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user