Skip to content

Commit

Permalink
Button visibility changes removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
riverwanderer committed Sep 15, 2023
1 parent dd9716e commit 7ac4b20
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 7ac4b20

Please sign in to comment.