diff --git a/src/main/java/com/sparrowwallet/sparrow/AppController.java b/src/main/java/com/sparrowwallet/sparrow/AppController.java index 677e3972..10bf5293 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppController.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppController.java @@ -87,6 +87,9 @@ public class AppController implements Initializable { @FXML private Menu savePSBT; + @FXML + private MenuItem savePSBTBinary; + @FXML private MenuItem exportWallet; @@ -232,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); } } }); @@ -266,7 +271,9 @@ public class AppController implements Initializable { showTxHex.setSelected(Config.get().isShowTransactionHex()); showLoadingLog.setSelected(Config.get().isShowLoadingLog()); showUtxosChart.setSelected(Config.get().isShowUtxosChart()); + saveTransaction.setDisable(true); savePSBT.visibleProperty().bind(saveTransaction.visibleProperty().not()); + savePSBTBinary.disableProperty().bind(saveTransaction.visibleProperty()); exportWallet.setDisable(true); refreshWallet.disableProperty().bind(Bindings.or(exportWallet.disableProperty(), Bindings.or(serverToggle.disableProperty(), AppServices.onlineProperty().not()))); sendToMany.disableProperty().bind(exportWallet.disableProperty()); diff --git a/src/main/resources/com/sparrowwallet/sparrow/app.fxml b/src/main/resources/com/sparrowwallet/sparrow/app.fxml index c77731d4..7964263e 100644 --- a/src/main/resources/com/sparrowwallet/sparrow/app.fxml +++ b/src/main/resources/com/sparrowwallet/sparrow/app.fxml @@ -29,7 +29,7 @@