Tweak the "no accounts" warning a bit.

It now asks users if they want to open the manage accounts dialog to
add their accounts.
This commit is contained in:
Andrew 2013-11-22 10:12:16 -06:00
parent a332e0d7b1
commit 69ac3e5a86

View File

@ -567,9 +567,16 @@ void MainWindow::doLogin(const QString &errorMsg)
if (accounts->count() <= 0) if (accounts->count() <= 0)
{ {
// Tell the user they need to log in at least one account in order to play. // Tell the user they need to log in at least one account in order to play.
CustomMessageBox::selectable(this, tr("No Accounts"), auto reply = CustomMessageBox::selectable(this, tr("No Accounts"),
tr("In order to play Minecraft, you must have at least one Mojang or Minecraft account logged in to MultiMC. Please add an account."), tr("In order to play Minecraft, you must have at least one Mojang or Minecraft account logged in to MultiMC."
QMessageBox::Information)->exec(); "Would you like to open the account manager to add an account now?"),
QMessageBox::Information, QMessageBox::Yes | QMessageBox::No)->exec();
if (reply == QMessageBox::Yes)
{
// Open the account manager.
on_actionManageAccounts_triggered();
}
return; return;
} }
else else