NOISSUE mark used accounts/sessions in selection menus
This commit is contained in:
parent
3769897be1
commit
12f6534e77
13 changed files with 194 additions and 5 deletions
|
@ -726,7 +726,12 @@ void MainWindow::repopulateAccountsMenu()
|
|||
MojangAccountPtr account = accounts->at(i);
|
||||
for (auto profile : account->profiles())
|
||||
{
|
||||
QAction *action = new QAction(profile.name, this);
|
||||
auto profileLabel = profile.name;
|
||||
if(account->isInUse())
|
||||
{
|
||||
profileLabel += tr(" (in use)");
|
||||
}
|
||||
QAction *action = new QAction(profileLabel, this);
|
||||
action->setData(account->username());
|
||||
action->setCheckable(true);
|
||||
if (active_username == account->username())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue