From 7ac4b2046a20ea93629bfd19915c9cd14f91144a Mon Sep 17 00:00:00 2001 From: riverwanderer <58135975+riverwanderer@users.noreply.github.com> Date: Fri, 15 Sep 2023 23:41:58 +0100 Subject: [PATCH] Button visibility changes removed. --- .../src/main/java/VASSAL/build/module/PlayerRoster.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 aabe47a25a..35923f2ee4 100644 --- a/vassal-app/src/main/java/VASSAL/build/module/PlayerRoster.java +++ b/vassal-app/src/main/java/VASSAL/build/module/PlayerRoster.java @@ -109,7 +109,7 @@ public PlayerRoster() { e -> launch() )); getLaunchButton().setEnabled(false); // not usuable without a game - getLaunchButton().setVisible(false); + // getLaunchButton().setVisible(false); retireButton = getLaunchButton(); // for compatibility setShowDisabledOptions(false); //AbstractToolbarItem @@ -452,7 +452,7 @@ 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; } @@ -482,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; }