1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-09 15:22:13 -04:00

locale: fix locale override persisting even when not explicitly set

This commit is contained in:
bbedward
2026-02-26 16:15:06 -05:00
parent 1fe72e1a66
commit fbc1ff62c7
6 changed files with 44 additions and 24 deletions

View File

@@ -149,7 +149,6 @@ Singleton {
property int mangoLayoutRadiusOverride: -1
property int mangoLayoutBorderSize: -1
property string locale: ""
property bool use24HourClock: true
property bool showSeconds: false
property bool padHours12Hour: false
@@ -1131,10 +1130,6 @@ Singleton {
Quickshell.execDetached(["sh", "-lc", script]);
}
function updateLocale() {
I18n.useLocale(locale, locale.startsWith("en") ? "" : I18n.folder + "/" + locale + ".json");
}
readonly property var _hooks: ({
"applyStoredTheme": applyStoredTheme,
"regenSystemThemes": regenSystemThemes,
@@ -1142,7 +1137,6 @@ Singleton {
"applyStoredIconTheme": applyStoredIconTheme,
"updateBarConfigs": updateBarConfigs,
"updateCompositorCursor": updateCompositorCursor,
"updateLocale": updateLocale,
})
function set(key, value) {
@@ -2646,7 +2640,6 @@ Singleton {
_hasLoaded = true;
applyStoredTheme();
updateCompositorCursor();
updateLocale();
} catch (e) {
_parseError = true;
const msg = e.message;