Added username to window title

While having more than 1 client open I found it hard to know which user
was which. I have added the user name to the title bar so you know who
you are logged in as.
This commit is contained in:
Matt Lowe 2015-03-03 13:09:41 +01:00
parent 90880c8b7e
commit 4cbffc3f6d
2 changed files with 3 additions and 1 deletions

View file

@ -287,7 +287,7 @@ void MainWindow::setClientStatusTitle()
case StatusConnecting: setWindowTitle(appName + " - " + tr("Connecting to %1...").arg(client->peerName())); break;
case StatusDisconnected: setWindowTitle(appName + " - " + tr("Disconnected")); break;
case StatusLoggingIn: setWindowTitle(appName + " - " + tr("Connected, logging in at %1").arg(client->peerName())); break;
case StatusLoggedIn: setWindowTitle(appName + " - " + tr("Logged in at %1").arg(client->peerName())); break;
case StatusLoggedIn: setWindowTitle(appName + " - " + tr("Logged in as %1 at %2").arg(client->getUserName()).arg(client->peerName())); break;
default: setWindowTitle(appName);
}
}