mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 11:24:56 -04:00
fix possible exception when selecting account in startup
This commit is contained in:
parent
dc7787cc8c
commit
3b5ddabfc7
@ -97,11 +97,13 @@ public class MainWindow implements Initializable {
|
||||
if (menuAccount2 == null) {
|
||||
return;
|
||||
}
|
||||
Platform.runLater(() -> {
|
||||
if (Minosoft.getSelectedAccount() != null) {
|
||||
menuAccount2.setText(LocaleManager.translate(Strings.MAIN_WINDOW_MENU_SERVERS_ACCOUNTS_SELECTED, Minosoft.getSelectedAccount().getPlayerName()));
|
||||
} else {
|
||||
menuAccount2.setText(LocaleManager.translate(Strings.MAIN_WINDOW_MENU_SERVERS_ACCOUNTS));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user