Skip to content

Commit 4e9b817

Browse files
committed
fix: apply UI language changes immediately in settings
Previously, changing the UI language in settings required an app restart. The setLocale call was missing the { reload: false } parameter that was added to SetupWizard in PR #30. Now the UI updates immediately when saving settings with a new language selection, matching the behavior of the setup wizard.
1 parent 46a313d commit 4e9b817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/src/lib/components/SettingsPanel.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@
265265
266266
// If UI language changed, reload to apply new locale
267267
if (previousLang !== settings.ui_language && isLocale(settings.ui_language)) {
268-
void setLocale(settings.ui_language);
268+
void setLocale(settings.ui_language, { reload: false });
269269
return;
270270
}
271271

0 commit comments

Comments
 (0)