Commit f9aa7628 authored by 神楽坂玲奈's avatar 神楽坂玲奈

migrate

parent 860cbfb7
...@@ -71,11 +71,13 @@ export class AppsService { ...@@ -71,11 +71,13 @@ export class AppsService {
} }
async migreate_default_library() { async migreate_default_library() {
let default_library = this.settingsService.getDefaultLibrary(); let libraries = this.settingsService.getLibraries();
if (default_library.path == path.join(remote.app.getPath("appData"), "library")) { for (let library of libraries) {
default_library.path = path.join(remote.app.getPath("appData"), "MyCardLibrary") if (library.path == path.join(remote.app.getPath("appData"), "library")) {
library.path = path.join(remote.app.getPath("appData"), "MyCardLibrary")
} }
this.settingsService.setDefaultLibrary(default_library); }
localStorage.setItem(SettingsService.SETTING_LIBRARY, JSON.stringify(libraries));
} }
loadAppsList = (data: any): Map<string,App> => { loadAppsList = (data: any): Map<string,App> => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment