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> Signed-off-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
parent
ce54fc645d
commit
4eec23689b
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user