mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
base-store clean up
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
b79a3c8da3
commit
153e705822
@ -56,14 +56,10 @@ export class BaseStore<T = any> extends Singleton {
|
||||
...confOptions,
|
||||
projectName: "lens",
|
||||
projectVersion: getAppVersion(),
|
||||
get cwd() {
|
||||
return (app || remote.app).getPath("userData"); // todo: remove usage of remote.app (deprecated)
|
||||
},
|
||||
cwd: (app || remote.app).getPath("userData"),
|
||||
});
|
||||
const storedModel = Object.assign({}, this.storeConfig.store);
|
||||
Reflect.deleteProperty(storedModel, "__internal__"); // todo: avoid "external-internals"
|
||||
logger.info(`[STORE]: LOADED from ${this.storeConfig.path}`);
|
||||
this.fromStore(storedModel);
|
||||
this.fromStore(this.storeConfig.store);
|
||||
this.isLoaded = true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user