|
@ -87,6 +87,9 @@ public class AppController implements Initializable { |
|
|
@FXML |
|
|
@FXML |
|
|
private Menu savePSBT; |
|
|
private Menu savePSBT; |
|
|
|
|
|
|
|
|
|
|
|
@FXML |
|
|
|
|
|
private MenuItem savePSBTBinary; |
|
|
|
|
|
|
|
|
@FXML |
|
|
@FXML |
|
|
private MenuItem exportWallet; |
|
|
private MenuItem exportWallet; |
|
|
|
|
|
|
|
@ -232,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); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
@ -266,7 +271,9 @@ public class AppController implements Initializable { |
|
|
showTxHex.setSelected(Config.get().isShowTransactionHex()); |
|
|
showTxHex.setSelected(Config.get().isShowTransactionHex()); |
|
|
showLoadingLog.setSelected(Config.get().isShowLoadingLog()); |
|
|
showLoadingLog.setSelected(Config.get().isShowLoadingLog()); |
|
|
showUtxosChart.setSelected(Config.get().isShowUtxosChart()); |
|
|
showUtxosChart.setSelected(Config.get().isShowUtxosChart()); |
|
|
|
|
|
saveTransaction.setDisable(true); |
|
|
savePSBT.visibleProperty().bind(saveTransaction.visibleProperty().not()); |
|
|
savePSBT.visibleProperty().bind(saveTransaction.visibleProperty().not()); |
|
|
|
|
|
savePSBTBinary.disableProperty().bind(saveTransaction.visibleProperty()); |
|
|
exportWallet.setDisable(true); |
|
|
exportWallet.setDisable(true); |
|
|
refreshWallet.disableProperty().bind(Bindings.or(exportWallet.disableProperty(), Bindings.or(serverToggle.disableProperty(), AppServices.onlineProperty().not()))); |
|
|
refreshWallet.disableProperty().bind(Bindings.or(exportWallet.disableProperty(), Bindings.or(serverToggle.disableProperty(), AppServices.onlineProperty().not()))); |
|
|
sendToMany.disableProperty().bind(exportWallet.disableProperty()); |
|
|
sendToMany.disableProperty().bind(exportWallet.disableProperty()); |
|
|