From e740c6d162f4cc7888a4b3a2d899ee37564cc069 Mon Sep 17 00:00:00 2001 From: Haakon Nilsen Date: Wed, 26 May 2021 18:58:58 +0200 Subject: [PATCH] Disable transaction saving menu items after a transaction tab is closed and no other tabs are open --- src/main/java/com/sparrowwallet/sparrow/AppController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/AppController.java b/src/main/java/com/sparrowwallet/sparrow/AppController.java index dd6ab34d..10bf5293 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppController.java +++ b/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); } } });