mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-11-05 11:56:37 +00:00
feat: add hide amounts config and event
This commit is contained in:
parent
2f62a9e9c8
commit
8008980f5f
2 changed files with 23 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
||||||
|
package com.sparrowwallet.sparrow.event;
|
||||||
|
|
||||||
|
public class HideAmountsStatusEvent {
|
||||||
|
private final boolean hideAmounts;
|
||||||
|
|
||||||
|
public HideAmountsStatusEvent(boolean hideAmounts) {
|
||||||
|
this.hideAmounts = hideAmounts;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isHideAmounts() {
|
||||||
|
return hideAmounts;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -47,6 +47,7 @@ public class Config {
|
||||||
private Theme theme;
|
private Theme theme;
|
||||||
private boolean openWalletsInNewWindows = false;
|
private boolean openWalletsInNewWindows = false;
|
||||||
private boolean hideEmptyUsedAddresses = false;
|
private boolean hideEmptyUsedAddresses = false;
|
||||||
|
private boolean hideAmounts = false;
|
||||||
private boolean showTransactionHex = true;
|
private boolean showTransactionHex = true;
|
||||||
private boolean showLoadingLog = true;
|
private boolean showLoadingLog = true;
|
||||||
private boolean showAddressTransactionCount = false;
|
private boolean showAddressTransactionCount = false;
|
||||||
|
|
@ -303,6 +304,15 @@ public class Config {
|
||||||
flush();
|
flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isHideAmounts() {
|
||||||
|
return hideAmounts;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHideAmounts(boolean hideAmounts) {
|
||||||
|
this.hideAmounts = hideAmounts;
|
||||||
|
flush();
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isShowTransactionHex() {
|
public boolean isShowTransactionHex() {
|
||||||
return showTransactionHex;
|
return showTransactionHex;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue