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

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