From 14c8b8aef73ba012c1c83126522e075c6d92f858 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 5 May 2025 16:26:03 -0400 Subject: [PATCH] Call AccountConfig::save() in a few missing spots Notably, this prevents an odd bug from happening where Astra could prompt you to select an account *again* after restarting. --- launcher/src/profile.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/launcher/src/profile.cpp b/launcher/src/profile.cpp index f013c6d..e445ec8 100644 --- a/launcher/src/profile.cpp +++ b/launcher/src/profile.cpp @@ -150,6 +150,7 @@ void Profile::setWinePath(const QString &path) { if (m_config->winePath() != path) { m_config->setWinePath(path); + m_config->save(); Q_EMIT winePathChanged(); } } @@ -169,6 +170,7 @@ void Profile::setAccount(Account *account) { m_account = account; m_config->setAccount(account->uuid()); + m_config->save(); Q_EMIT accountChanged(); }