main: hide Unlock time when switching wallets

This commit is contained in:
mmbyday 2018-12-16 20:13:07 -08:00
parent 59fc48bd8b
commit 616fd6603f
1 changed files with 7 additions and 0 deletions

View File

@ -923,6 +923,7 @@ ApplicationWindow {
// close wallet and show wizard
function showWizard(){
clearMoneroCardLabelText();
walletInitialized = false;
closeWallet();
currentWallet = undefined;
@ -1813,6 +1814,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