mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 11:54:59 -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) {
|
if (menuAccount2 == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (Minosoft.getSelectedAccount() != null) {
|
Platform.runLater(() -> {
|
||||||
menuAccount2.setText(LocaleManager.translate(Strings.MAIN_WINDOW_MENU_SERVERS_ACCOUNTS_SELECTED, Minosoft.getSelectedAccount().getPlayerName()));
|
if (Minosoft.getSelectedAccount() != null) {
|
||||||
} else {
|
menuAccount2.setText(LocaleManager.translate(Strings.MAIN_WINDOW_MENU_SERVERS_ACCOUNTS_SELECTED, Minosoft.getSelectedAccount().getPlayerName()));
|
||||||
menuAccount2.setText(LocaleManager.translate(Strings.MAIN_WINDOW_MENU_SERVERS_ACCOUNTS));
|
} else {
|
||||||
}
|
menuAccount2.setText(LocaleManager.translate(Strings.MAIN_WINDOW_MENU_SERVERS_ACCOUNTS));
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user