1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-05-13 21:07:46 +00:00

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.
This commit is contained in:
Joshua Goins 2025-05-05 16:26:03 -04:00
parent 81d02c4a9e
commit 14c8b8aef7

View file

@ -150,6 +150,7 @@ void Profile::setWinePath(const QString &path)
{ {
if (m_config->winePath() != path) { if (m_config->winePath() != path) {
m_config->setWinePath(path); m_config->setWinePath(path);
m_config->save();
Q_EMIT winePathChanged(); Q_EMIT winePathChanged();
} }
} }
@ -169,6 +170,7 @@ void Profile::setAccount(Account *account)
{ {
m_account = account; m_account = account;
m_config->setAccount(account->uuid()); m_config->setAccount(account->uuid());
m_config->save();
Q_EMIT accountChanged(); Q_EMIT accountChanged();
} }