mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
add view menu item to switch hd capture
This commit is contained in:
parent
6f26c7e138
commit
38b8fa3b86
2 changed files with 10 additions and 0 deletions
|
@ -116,6 +116,9 @@ public class AppController implements Initializable {
|
||||||
@FXML
|
@FXML
|
||||||
private CheckMenuItem hideEmptyUsedAddresses;
|
private CheckMenuItem hideEmptyUsedAddresses;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
private CheckMenuItem useHdCameraResolution;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private CheckMenuItem showTxHex;
|
private CheckMenuItem showTxHex;
|
||||||
|
|
||||||
|
@ -253,6 +256,7 @@ public class AppController implements Initializable {
|
||||||
|
|
||||||
openWalletsInNewWindows.setSelected(Config.get().isOpenWalletsInNewWindows());
|
openWalletsInNewWindows.setSelected(Config.get().isOpenWalletsInNewWindows());
|
||||||
hideEmptyUsedAddresses.setSelected(Config.get().isHideEmptyUsedAddresses());
|
hideEmptyUsedAddresses.setSelected(Config.get().isHideEmptyUsedAddresses());
|
||||||
|
useHdCameraResolution.setSelected(Config.get().isHdCapture());
|
||||||
showTxHex.setSelected(Config.get().isShowTransactionHex());
|
showTxHex.setSelected(Config.get().isShowTransactionHex());
|
||||||
savePSBT.visibleProperty().bind(saveTransaction.visibleProperty().not());
|
savePSBT.visibleProperty().bind(saveTransaction.visibleProperty().not());
|
||||||
exportWallet.setDisable(true);
|
exportWallet.setDisable(true);
|
||||||
|
@ -639,6 +643,11 @@ public class AppController implements Initializable {
|
||||||
EventManager.get().post(new HideEmptyUsedAddressesStatusEvent(item.isSelected()));
|
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) {
|
public void showTxHex(ActionEvent event) {
|
||||||
CheckMenuItem item = (CheckMenuItem)event.getSource();
|
CheckMenuItem item = (CheckMenuItem)event.getSource();
|
||||||
Config.get().setShowTransactionHex(item.isSelected());
|
Config.get().setShowTransactionHex(item.isSelected());
|
||||||
|
|
|
@ -85,6 +85,7 @@
|
||||||
<SeparatorMenuItem />
|
<SeparatorMenuItem />
|
||||||
<CheckMenuItem fx:id="openWalletsInNewWindows" mnemonicParsing="false" text="Open Wallets in New Windows" onAction="#openWalletsInNewWindows"/>
|
<CheckMenuItem fx:id="openWalletsInNewWindows" mnemonicParsing="false" text="Open Wallets in New Windows" onAction="#openWalletsInNewWindows"/>
|
||||||
<CheckMenuItem fx:id="hideEmptyUsedAddresses" mnemonicParsing="false" text="Hide Empty Used Addresses" onAction="#hideEmptyUsedAddresses"/>
|
<CheckMenuItem fx:id="hideEmptyUsedAddresses" mnemonicParsing="false" text="Hide Empty Used Addresses" onAction="#hideEmptyUsedAddresses"/>
|
||||||
|
<CheckMenuItem fx:id="useHdCameraResolution" mnemonicParsing="false" text="Use HD camera resolution" onAction="#useHdCameraResolution"/>
|
||||||
<CheckMenuItem fx:id="showTxHex" mnemonicParsing="false" text="Show Transaction Hex" onAction="#showTxHex"/>
|
<CheckMenuItem fx:id="showTxHex" mnemonicParsing="false" text="Show Transaction Hex" onAction="#showTxHex"/>
|
||||||
<SeparatorMenuItem />
|
<SeparatorMenuItem />
|
||||||
<MenuItem fx:id="minimizeToTray" mnemonicParsing="false" text="Minimize to System Tray" accelerator="Shortcut+Y" onAction="#minimizeToTray"/>
|
<MenuItem fx:id="minimizeToTray" mnemonicParsing="false" text="Minimize to System Tray" accelerator="Shortcut+Y" onAction="#minimizeToTray"/>
|
||||||
|
|
Loading…
Reference in a new issue