From f5aec0eba92c6b9a32fefbad149920a734e0bd02 Mon Sep 17 00:00:00 2001 From: mmbyday Date: Tue, 12 Mar 2019 18:53:56 -0700 Subject: [PATCH] main: fix refreshing of language fields --- main.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.qml b/main.qml index b3d0e528..d1b99ee4 100644 --- a/main.qml +++ b/main.qml @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2018, The Monero Project +// Copyright (c) 2014-2019, The Monero Project // // All rights reserved. // @@ -1745,6 +1745,7 @@ ApplicationWindow { function toggleLanguageView(){ middlePanel.visible = !middlePanel.visible; languageView.visible = !languageView.visible + resetLanguageFields() // update after changing language from settings page if (persistentSettings.language != wizard.language_language) { persistentSettings.language = wizard.language_language @@ -1948,6 +1949,12 @@ ApplicationWindow { leftPanel.balanceLabelText = qsTr("Balance") } + // some fields need an extra nudge when changing languages + function resetLanguageFields(){ + clearMoneroCardLabelText() + onWalletRefresh() + } + function userActivity() { // register user activity var epoch = Math.floor((new Date).getTime()/1000);