From bde8fef35e43e6f882566f993980c2044d1ef710 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 22 Nov 2023 09:17:17 +0200 Subject: [PATCH] disable rename wallet on transaction tab --- src/main/java/com/sparrowwallet/sparrow/AppController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/AppController.java b/src/main/java/com/sparrowwallet/sparrow/AppController.java index d1f1e207..86c42076 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppController.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppController.java @@ -107,6 +107,9 @@ public class AppController implements Initializable { @FXML private MenuItem exportWallet; + @FXML + private MenuItem renameWallet; + @FXML private MenuItem deleteWallet; @@ -382,6 +385,7 @@ public class AppController implements Initializable { savePSBTBinary.disableProperty().bind(saveTransaction.visibleProperty()); showPSBT.visibleProperty().bind(saveTransaction.visibleProperty().not()); exportWallet.setDisable(true); + renameWallet.disableProperty().bind(exportWallet.disableProperty()); deleteWallet.disableProperty().bind(exportWallet.disableProperty()); closeTab.setDisable(true); lockWallet.setDisable(true);