diff --git a/vassal-app/src/main/java/VASSAL/build/module/PlayerRoster.java b/vassal-app/src/main/java/VASSAL/build/module/PlayerRoster.java index e496c2e3db..35923f2ee4 100644 --- a/vassal-app/src/main/java/VASSAL/build/module/PlayerRoster.java +++ b/vassal-app/src/main/java/VASSAL/build/module/PlayerRoster.java @@ -108,7 +108,8 @@ public PlayerRoster() { "", e -> launch() )); - getLaunchButton().setVisible(false); + getLaunchButton().setEnabled(false); // not usuable without a game + // getLaunchButton().setVisible(false); retireButton = getLaunchButton(); // for compatibility setShowDisabledOptions(false); //AbstractToolbarItem @@ -451,7 +452,8 @@ public void setup(boolean gameStarting) { GameModule.setTempUserId(null); players.clear(); } - getLaunchButton().setVisible(gameStarting && getMySide() != null); + // getLaunchButton().setVisible(gameStarting && getMySide() != null); + getLaunchButton().setEnabled(gameStarting); pickedSide = false; } @@ -480,7 +482,9 @@ public void finish() { a.execute(); GameModule.getGameModule().getServer().sendToOthers(a); } - getLaunchButton().setVisible(getMySide() != null); + // button is enabled / disabled at start and end of games. + // not clear what purpose is served by adjusting button visibility here + // getLaunchButton().setVisible(getMySide() != null); pickedSide = true; }