From: Soeren Apel Date: Sun, 2 Feb 2020 09:48:02 +0000 (+0100) Subject: GlobalSettings: Use auto-detected language immediately X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d803699593f0b2df304aeba70a57485eb9ffd9b6;p=pulseview.git GlobalSettings: Use auto-detected language immediately Without this, the auto-detected language only takes effect after a restart of PV, even though the language selector shows that language already. --- diff --git a/pv/globalsettings.cpp b/pv/globalsettings.cpp index 10b344a4..2e3e52f1 100644 --- a/pv/globalsettings.cpp +++ b/pv/globalsettings.cpp @@ -106,6 +106,7 @@ void GlobalSettings::set_defaults_where_needed() language = language.split("-").first(); setValue(Key_General_Language, language); + apply_language(); } // Use no theme by default