mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-14 04:32:14 +00:00
Add icon for when no default account is selected
Also fixed a bug where the icon on the accounts button wouldn't change when the user checked the "Use as default" checkbox in the account selection dialog.
This commit is contained in:
@@ -106,7 +106,7 @@ void MojangAccountList::setActiveAccount(const QString& username)
|
||||
}
|
||||
}
|
||||
endResetModel();
|
||||
onListChanged();
|
||||
onActiveChanged();
|
||||
}
|
||||
|
||||
|
||||
@@ -116,8 +116,15 @@ void MojangAccountList::onListChanged()
|
||||
// TODO: Alert the user if this fails.
|
||||
saveList();
|
||||
|
||||
// TODO: stop this getting called from setActiveAccount
|
||||
//emit listChanged();
|
||||
emit listChanged();
|
||||
}
|
||||
|
||||
void MojangAccountList::onActiveChanged()
|
||||
{
|
||||
if (m_autosave)
|
||||
saveList();
|
||||
|
||||
emit activeAccountChanged();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user