From bb4c6d6f6e88b1fc4ae9a053d528350e0a952842 Mon Sep 17 00:00:00 2001 From: brock gilman <112773564+brockgilman@users.noreply.github.com> Date: Tue, 18 Feb 2025 10:36:51 -0500 Subject: [PATCH] fix: ensure settings save after reauthenticating (#5958) Fixes #5901 --- CHANGELOG.md | 1 + src/widgets/dialogs/LoginDialog.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56858cc9..1ba7574c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ - Bugfix: Fixed announcements not showing up in mentions tab. (#5857) - Bugfix: Fixed the reply button showing for inline whispers and announcements. (#5863) - Bugfix: Fixed suspicious user treatment update messages not being searchable. (#5865) +- Bugfix: Ensure settings save after reauthenticating with a Twitch account. (#5901) - Bugfix: Fixed user info popup's opened from `/live` making some network requests that always failed. (#5959) - Bugfix: Ensure miniaudio backend exits even if it doesn't exit cleanly. (#5896) - Bugfix: Fixed search in emote popup not always working correctly. (#5946) diff --git a/src/widgets/dialogs/LoginDialog.cpp b/src/widgets/dialogs/LoginDialog.cpp index 5664acc3..b60afd43 100644 --- a/src/widgets/dialogs/LoginDialog.cpp +++ b/src/widgets/dialogs/LoginDialog.cpp @@ -6,6 +6,7 @@ #include "common/QLogging.hpp" #include "controllers/accounts/AccountController.hpp" #include "providers/twitch/TwitchAccount.hpp" +#include "singletons/Settings.hpp" #include "util/Clipboard.hpp" #include "util/Helpers.hpp" @@ -68,6 +69,7 @@ namespace { getApp()->getAccounts()->twitch.reloadUsers(); getApp()->getAccounts()->twitch.currentUsername = username; + getSettings()->requestSave(); return true; }