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

View file

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