Merge pull request #1832

616fd66 main: hide Unlock time when switching wallets (mmbyday)
This commit is contained in:
luigi1111 2018-12-18 09:49:34 -06:00
commit 4d2b454e6d
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -924,6 +924,7 @@ ApplicationWindow {
// close wallet and show wizard
function showWizard(){
clearMoneroCardLabelText();
walletInitialized = false;
closeWallet();
currentWallet = undefined;
@ -1816,6 +1817,12 @@ ApplicationWindow {
}
}
// reset label text. othewise potential privacy leak showing unlock time when switching wallets
function clearMoneroCardLabelText(){
leftPanel.minutesToUnlockTxt = qsTr("Unlocked balance")
leftPanel.balanceLabelText = qsTr("Balance")
}
// Daemon console
DaemonConsole {
id: daemonConsolePopup