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 @@ +