Force debug update on language change to refresh digital clock
This commit is contained in:
1 parent
bbff9b9874
commit
baafbcf760
1 file changed
+7
@@ -1407,6 +1407,13 @@ window.weatherThemes = {
|
|||||||
applyI18n();
|
applyI18n();
|
||||||
// Trigger weather refresh to update day labels
|
// Trigger weather refresh to update day labels
|
||||||
if (typeof fetchWeather === 'function') fetchWeather();
|
if (typeof fetchWeather === 'function') fetchWeather();
|
||||||
|
// Force a debug update so the digital clock shows the new language
|
||||||
|
if (typeof updateDebug === 'function') {
|
||||||
|
var now = new Date();
|
||||||
|
updateDebug(0, null,
|
||||||
|
{ sky: 0, cloud: 0, light: 0, bg: 0 },
|
||||||
|
currentWeatherThemeName, realDayProgress);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function populateDebugSelects() {
|
function populateDebugSelects() {
|
||||||
|
|||||||
Reference in new issue
Block a user