Showing the changes to interface/src/Menu.cpp (1 of 7 files). Show all
Unified · Split
| @@ -1119,7 +1119,7 @@ void Menu::toggleLoginMenuItem() { · 1118 unmodified lines | |||
| 1119 | 1119 | ||
| 1120 | if (accountManager.isLoggedIn()) { | 1120 | if (accountManager.isLoggedIn()) { |
| 1121 | // change the menu item to logout | 1121 | // change the menu item to logout |
| 1122 | _loginAction->setText("Logout " + accountManager.getUsername()); | 1122 | _loginAction->setText("Logout " + accountManager.getAccountInfo().getUsername()); |
| 1123 | connect(_loginAction, &QAction::triggered, &accountManager, &AccountManager::logout); | 1123 | connect(_loginAction, &QAction::triggered, &accountManager, &AccountManager::logout); |
| 1124 | } else { | 1124 | } else { |
| 1125 | // change the menu item to login | 1125 | // change the menu item to login |