mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix extension enabled status after installation (#3199)
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
parent
8dda513b79
commit
7e8cc2122c
@ -192,6 +192,10 @@ export class ExtensionLoader extends Singleton {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setIsEnabled(lensExtensionId: LensExtensionId, isEnabled: boolean) {
|
||||||
|
this.extensions.get(lensExtensionId).isEnabled = isEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
protected async initMain() {
|
protected async initMain() {
|
||||||
this.isLoaded = true;
|
this.isLoaded = true;
|
||||||
this.loadOnMain();
|
this.loadOnMain();
|
||||||
|
|||||||
@ -278,7 +278,7 @@ async function unpackExtension(request: InstallRequestValidated, disposeDownload
|
|||||||
await when(() => ExtensionLoader.getInstance().userExtensions.has(id));
|
await when(() => ExtensionLoader.getInstance().userExtensions.has(id));
|
||||||
|
|
||||||
// Enable installed extensions by default.
|
// Enable installed extensions by default.
|
||||||
ExtensionLoader.getInstance().userExtensions.get(id).isEnabled = true;
|
ExtensionLoader.getInstance().setIsEnabled(id, true);
|
||||||
|
|
||||||
Notifications.ok(
|
Notifications.ok(
|
||||||
<p>Extension <b>{displayName}</b> successfully installed!</p>
|
<p>Extension <b>{displayName}</b> successfully installed!</p>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user