mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
b79a3c8da3
commit
153e705822
1 file changed
+2
-6
@@ -56,14 +56,10 @@ export class BaseStore<T = any> extends Singleton {
|
|||||||
...confOptions,
|
...confOptions,
|
||||||
projectName: "lens",
|
projectName: "lens",
|
||||||
projectVersion: getAppVersion(),
|
projectVersion: getAppVersion(),
|
||||||
get cwd() {
|
cwd: (app || remote.app).getPath("userData"),
|
||||||
return (app || remote.app).getPath("userData"); // todo: remove usage of remote.app (deprecated)
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
const storedModel = Object.assign({}, this.storeConfig.store);
|
|
||||||
Reflect.deleteProperty(storedModel, "__internal__"); // todo: avoid "external-internals"
|
|
||||||
logger.info(`[STORE]: LOADED from ${this.storeConfig.path}`);
|
logger.info(`[STORE]: LOADED from ${this.storeConfig.path}`);
|
||||||
this.fromStore(storedModel);
|
this.fromStore(this.storeConfig.store);
|
||||||
this.isLoaded = true;
|
this.isLoaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user