1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-25 10:47:19 +01:00

Main: fix changing language from settings

This commit is contained in:
mmbyday 2019-02-24 10:55:11 -08:00
parent f3a47dbff8
commit 341c00b15c

View File

@ -1741,6 +1741,11 @@ ApplicationWindow {
function toggleLanguageView(){ function toggleLanguageView(){
middlePanel.visible = !middlePanel.visible; middlePanel.visible = !middlePanel.visible;
languageView.visible = !languageView.visible languageView.visible = !languageView.visible
// update after changing language from settings page
if (persistentSettings.language != wizard.language_language) {
persistentSettings.language = wizard.language_language
persistentSettings.locale = wizard.language_locale
}
} }
// TODO: Make the callback dynamic // TODO: Make the callback dynamic