Merge pull request #1829

bd82898 PasswordDialog: hide balance when passwordDialog is open (xiphon)
This commit is contained in:
luigi1111 2018-12-18 09:45:36 -06:00
commit 83f8508f56
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
2 changed files with 6 additions and 1 deletions

View file

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

View file

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