mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
main: fix refreshing of language fields
This commit is contained in:
parent
e729cd233c
commit
f5aec0eba9
1 changed files with 8 additions and 1 deletions
9
main.qml
9
main.qml
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (c) 2014-2018, The Monero Project
|
// Copyright (c) 2014-2019, The Monero Project
|
||||||
//
|
//
|
||||||
// All rights reserved.
|
// All rights reserved.
|
||||||
//
|
//
|
||||||
|
@ -1745,6 +1745,7 @@ ApplicationWindow {
|
||||||
function toggleLanguageView(){
|
function toggleLanguageView(){
|
||||||
middlePanel.visible = !middlePanel.visible;
|
middlePanel.visible = !middlePanel.visible;
|
||||||
languageView.visible = !languageView.visible
|
languageView.visible = !languageView.visible
|
||||||
|
resetLanguageFields()
|
||||||
// update after changing language from settings page
|
// update after changing language from settings page
|
||||||
if (persistentSettings.language != wizard.language_language) {
|
if (persistentSettings.language != wizard.language_language) {
|
||||||
persistentSettings.language = wizard.language_language
|
persistentSettings.language = wizard.language_language
|
||||||
|
@ -1948,6 +1949,12 @@ ApplicationWindow {
|
||||||
leftPanel.balanceLabelText = qsTr("Balance")
|
leftPanel.balanceLabelText = qsTr("Balance")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// some fields need an extra nudge when changing languages
|
||||||
|
function resetLanguageFields(){
|
||||||
|
clearMoneroCardLabelText()
|
||||||
|
onWalletRefresh()
|
||||||
|
}
|
||||||
|
|
||||||
function userActivity() {
|
function userActivity() {
|
||||||
// register user activity
|
// register user activity
|
||||||
var epoch = Math.floor((new Date).getTime()/1000);
|
var epoch = Math.floor((new Date).getTime()/1000);
|
||||||
|
|
Loading…
Reference in a new issue