From 38b8fa3b86023a8969980cfb9553c1d5888206fd Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 7 Apr 2021 10:36:18 +0200 Subject: [PATCH] add view menu item to switch hd capture --- .../java/com/sparrowwallet/sparrow/AppController.java | 9 +++++++++ src/main/resources/com/sparrowwallet/sparrow/app.fxml | 1 + 2 files changed, 10 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/AppController.java b/src/main/java/com/sparrowwallet/sparrow/AppController.java index 6f009a35..072052eb 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppController.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppController.java @@ -116,6 +116,9 @@ public class AppController implements Initializable { @FXML private CheckMenuItem hideEmptyUsedAddresses; + @FXML + private CheckMenuItem useHdCameraResolution; + @FXML private CheckMenuItem showTxHex; @@ -253,6 +256,7 @@ public class AppController implements Initializable { openWalletsInNewWindows.setSelected(Config.get().isOpenWalletsInNewWindows()); hideEmptyUsedAddresses.setSelected(Config.get().isHideEmptyUsedAddresses()); + useHdCameraResolution.setSelected(Config.get().isHdCapture()); showTxHex.setSelected(Config.get().isShowTransactionHex()); savePSBT.visibleProperty().bind(saveTransaction.visibleProperty().not()); exportWallet.setDisable(true); @@ -639,6 +643,11 @@ public class AppController implements Initializable { EventManager.get().post(new HideEmptyUsedAddressesStatusEvent(item.isSelected())); } + public void useHdCameraResolution(ActionEvent event) { + CheckMenuItem item = (CheckMenuItem)event.getSource(); + Config.get().setHdCapture(item.isSelected()); + } + public void showTxHex(ActionEvent event) { CheckMenuItem item = (CheckMenuItem)event.getSource(); Config.get().setShowTransactionHex(item.isSelected()); diff --git a/src/main/resources/com/sparrowwallet/sparrow/app.fxml b/src/main/resources/com/sparrowwallet/sparrow/app.fxml index 658e5419..526a3360 100644 --- a/src/main/resources/com/sparrowwallet/sparrow/app.fxml +++ b/src/main/resources/com/sparrowwallet/sparrow/app.fxml @@ -85,6 +85,7 @@ +