Disable transaction saving menu items after a transaction tab is closed and no other tabs are open

This commit is contained in:
Haakon Nilsen 2021-05-26 18:58:58 +02:00
parent f7f5852476
commit e740c6d162

View file

@ -235,6 +235,8 @@ public class AppController implements Initializable {
if(tabs.getTabs().isEmpty()) { if(tabs.getTabs().isEmpty()) {
Stage tabStage = (Stage)tabs.getScene().getWindow(); Stage tabStage = (Stage)tabs.getScene().getWindow();
tabStage.setTitle("Sparrow"); tabStage.setTitle("Sparrow");
saveTransaction.setVisible(true);
saveTransaction.setDisable(true);
} }
} }
}); });