Skip to content

Commit

Permalink
Added closing prevention to tabs on game view
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikollai committed May 15, 2026
1 parent 6ec8351 commit 4ced676
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/millions/view/GameView.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ private HBox createHeader() {

private TabPane createTabs() {
TabPane tabPane = new TabPane();
tabPane.setTabClosingPolicy(TabPane.TabClosingPolicy.UNAVAILABLE);
tabPane.getTabs().add(createStocksTab());
tabPane.getTabs().add(createPortfolioTab());
tabPane.getTabs().add(createTransactionsTab());
Expand Down

0 comments on commit 4ced676

Please sign in to comment.