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

migrate

parent 860cbfb7
......@@ -71,11 +71,13 @@ export class AppsService {
}
async migreate_default_library() {
let default_library = this.settingsService.getDefaultLibrary();
if (default_library.path == path.join(remote.app.getPath("appData"), "library")) {
default_library.path = path.join(remote.app.getPath("appData"), "MyCardLibrary")
let libraries = this.settingsService.getLibraries();
for (let library of libraries) {
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> => {
......
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