mirror of
https://github.com/redstrate/Astra.git
synced 2025-05-11 20:47:45 +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:
parent
81d02c4a9e
commit
14c8b8aef7
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue