Skip to content

Commit

Permalink
Merge pull request #150 from lcnetdev/export-import-preferences
Browse files Browse the repository at this point in the history
When loading, set the localStorage too
  • Loading branch information
f-osorio authored Dec 4, 2024
2 parents a1e7ca1 + f4eefd6 commit 9601c49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/panels/nav/Nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -499,11 +499,14 @@
var contents = JSON.parse(e.target.result)
that.preferenceStore.loadPreferences(contents["prefs"])
window.localStorage.setItem('marva-preferences', JSON.stringify(contents["prefs"]))
if (contents["scriptShifterOptions"]){
that.preferenceStore.scriptShifterOptions = contents["scriptShifterOptions"]
window.localStorage.setItem('marva-scriptShifterOptions', JSON.stringify(contents["scriptShifterOptions"]))
}
if (contents["diacriticUse"]){
that.preferenceStore.diacriticUse = contents["diacriticUse"]
window.localStorage.setItem('marva-diacriticUse', JSON.stringify(contents["diacriticUse"]))
}
that.preferenceStore.buildDiacriticSettings()
}
Expand Down
2 changes: 1 addition & 1 deletion src/stores/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const useConfigStore = defineStore('config', {

versionMajor: 0,
versionMinor: 16,
versionPatch: 25,
versionPatch: 26,

regionUrls: {

Expand Down

0 comments on commit 9601c49

Please sign in to comment.