Browse Source

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

terminal
Haakon Nilsen 4 years ago
parent
commit
e740c6d162
  1. 2
      src/main/java/com/sparrowwallet/sparrow/AppController.java

2
src/main/java/com/sparrowwallet/sparrow/AppController.java

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

Loading…
Cancel
Save