]> sigrok.org Git - pulseview.git/commitdiff
GlobalSettings: Use auto-detected language immediately
authorSoeren Apel <redacted>
Sun, 2 Feb 2020 09:48:02 +0000 (10:48 +0100)
committerSoeren Apel <redacted>
Sun, 2 Feb 2020 21:18:57 +0000 (22:18 +0100)
Without this, the auto-detected language only takes effect
after a restart of PV, even though the language selector
shows that language already.

pv/globalsettings.cpp

index 10b344a4aa4bb156e6f52163cf5c7085c7a60866..2e3e52f1b31ab7627cb6cb82d9a2d623088cfe5d 100644 (file)
@@ -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