Skip to content

Commit

Permalink
Fix language setting not applied after restart, fix #729
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello authored and sunner committed Apr 28, 2024
1 parent 7b5816a commit e6fb301
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ VMdPreview.use(vuepressTheme, {
const { ipcRenderer } = window.require("electron");

await store.restored; // wait for state to be restore
i18n.global.locale.value = store.state.lang;
store.commit("migrateSettingsPrompts");
store.commit("migrateSettingArrayIndexUseUUID");
await migrateChatsMessagesThreads();
Expand Down

0 comments on commit e6fb301

Please sign in to comment.