feat: add hide amounts config and event

This commit is contained in:
Kyle 🐆 2025-10-17 19:56:53 -04:00 committed by Kyle Santiago
parent 2f62a9e9c8
commit 8008980f5f
2 changed files with 23 additions and 0 deletions

View file

@ -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;
}
}

View file

@ -47,6 +47,7 @@ public class Config {
private Theme theme;
private boolean openWalletsInNewWindows = false;
private boolean hideEmptyUsedAddresses = false;
private boolean hideAmounts = false;
private boolean showTransactionHex = true;
private boolean showLoadingLog = true;
private boolean showAddressTransactionCount = false;
@ -303,6 +304,15 @@ public class Config {
flush();
}
public boolean isHideAmounts() {
return hideAmounts;
}
public void setHideAmounts(boolean hideAmounts) {
this.hideAmounts = hideAmounts;
flush();
}
public boolean isShowTransactionHex() {
return showTransactionHex;
}