Browse Source
Merge pull request #133 from haakonn/save-tx-menuitems
Fixes around transaction saving menu items
terminal
craigraw
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
1 deletions
-
src/main/java/com/sparrowwallet/sparrow/AppController.java
-
src/main/resources/com/sparrowwallet/sparrow/app.fxml
|
|
@ -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()); |
|
|
|
|
|
@ -29,7 +29,7 @@ |
|
|
|
</Menu> |
|
|
|
<MenuItem fx:id="saveTransaction" mnemonicParsing="false" text="Save Transaction..." accelerator="Shortcut+S" onAction="#saveTransaction"/> |
|
|
|
<Menu fx:id="savePSBT" mnemonicParsing="false" text="Save PSBT"> |
|
|
|
<MenuItem text="As Binary..." onAction="#savePSBTBinary" accelerator="Shortcut+S"/> |
|
|
|
<MenuItem fx:id="savePSBTBinary" text="As Binary..." onAction="#savePSBTBinary" accelerator="Shortcut+S"/> |
|
|
|
<MenuItem text="As Base64..." onAction="#savePSBTText"/> |
|
|
|
<MenuItem text="As Binary (No Xpubs)..." onAction="#savePSBTBinaryNoXpubs"/> |
|
|
|
<MenuItem text="As Base64 (No Xpubs)..." onAction="#savePSBTTextNoXpubs"/> |
|
|
|