mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Revert "fix extensionLoader error on dev environments where renderer might start early (#1447)"
This reverts commit 8a3613ac6f.
This commit is contained in:
parent
cde9868dc2
commit
bdd7fc0e35
@ -34,7 +34,10 @@ export class ExtensionLoader {
|
||||
}
|
||||
|
||||
@action
|
||||
async init() {
|
||||
async init(extensions?: Map<LensExtensionId, InstalledExtension>) {
|
||||
if (extensions) {
|
||||
this.extensions.replace(extensions);
|
||||
}
|
||||
if (ipcRenderer) {
|
||||
this.initRenderer()
|
||||
} else {
|
||||
@ -43,10 +46,6 @@ export class ExtensionLoader {
|
||||
extensionsStore.manageState(this);
|
||||
}
|
||||
|
||||
initExtensions(extensions?: Map<LensExtensionId, InstalledExtension>) {
|
||||
this.extensions.replace(extensions)
|
||||
}
|
||||
|
||||
protected async initMain() {
|
||||
this.isLoaded = true;
|
||||
this.loadOnMain();
|
||||
|
||||
@ -78,9 +78,8 @@ app.on("ready", async () => {
|
||||
app.exit();
|
||||
}
|
||||
|
||||
extensionLoader.init()
|
||||
windowManager = WindowManager.getInstance<WindowManager>(proxyPort);
|
||||
extensionLoader.initExtensions(await extensionManager.load()); // call after windowManager to see splash earlier
|
||||
extensionLoader.init(await extensionManager.load()); // call after windowManager to see splash earlier
|
||||
|
||||
setTimeout(() => {
|
||||
appEventBus.emit({ name: "service", action: "start" })
|
||||
|
||||
Loading…
Reference in New Issue
Block a user