diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2018-12-18 09:45:36 -0600 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2018-12-18 09:45:36 -0600 |
| commit | 83f8508f560f5d1fae7452621e35c6d554a577de (patch) | |
| tree | 5169245759f3eff44f9464082d7867e119de9a35 | |
| parent | 16e08c2a12a874358392b3b1489d38dd39bef524 (diff) | |
| parent | bd8289803ec5d6ed10b5b82d6460cfdbede673f1 (diff) | |
| download | monzero-gui-83f8508f560f5d1fae7452621e35c6d554a577de.tar.gz monzero-gui-83f8508f560f5d1fae7452621e35c6d554a577de.tar.xz monzero-gui-83f8508f560f5d1fae7452621e35c6d554a577de.zip | |
Merge pull request #1829
bd82898 PasswordDialog: hide balance when passwordDialog is open (xiphon)
| -rw-r--r-- | components/PasswordDialog.qml | 4 | ||||
| -rw-r--r-- | main.qml | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/components/PasswordDialog.qml b/components/PasswordDialog.qml index d0f442e4..01d91fec 100644 --- a/components/PasswordDialog.qml +++ b/components/PasswordDialog.qml @@ -61,6 +61,8 @@ Item { root.visible = true; passwordInput.forceActiveFocus(); passwordInput.text = "" + appWindow.hideBalanceForced = true; + appWindow.updateBalance(); } function showError(errorText) { @@ -73,6 +75,8 @@ Item { middlePanel.enabled = true titleBar.enabled = true root.visible = false; + appWindow.hideBalanceForced = false; + appWindow.updateBalance(); closeCallback(); } @@ -48,6 +48,7 @@ ApplicationWindow { title: "Monero" property var currentItem + property bool hideBalanceForced: false property bool whatIsEnable: false property bool ctrlPressed: false property bool rightPanelExpanded: false @@ -358,7 +359,7 @@ ApplicationWindow { var balance_unlocked = qsTr("HIDDEN"); var balance = qsTr("HIDDEN"); - if(!persistentSettings.hideBalance){ + if(!hideBalanceForced && !persistentSettings.hideBalance){ balance_unlocked = walletManager.displayAmount(currentWallet.unlockedBalance(currentWallet.currentSubaddressAccount)); balance = walletManager.displayAmount(currentWallet.balance(currentWallet.currentSubaddressAccount)); } |
