mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Fix app crash on quit (#7407) * Fix app crash on quit Signed-off-by: Sebastian Malton <sebastian@malton.name> * Back out disabling extensions on quit Signed-off-by: Sebastian Malton <sebastian@malton.name> --------- Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fixup cherry-pick Signed-off-by: Sebastian Malton <sebastian@malton.name> --------- Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
c48b53fd5e
commit
2884dea195
4 files changed
+41
-14
No files matched your search
+2
-2
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import type { ContentSource, ElectronWindowTitleBarStyle } from "./create-electron-window.injectable";
|
||||
import createElectronWindowForInjectable from "./create-electron-window.injectable";
|
||||
import createElectronWindowInjectable from "./create-electron-window.injectable";
|
||||
import type { ClusterFrameInfo } from "../../../../common/cluster-frames.injectable";
|
||||
|
||||
export interface ElectronWindow {
|
||||
@@ -59,7 +59,7 @@ const createLensWindowInjectable = getInjectable({
|
||||
id: "create-lens-window",
|
||||
|
||||
instantiate: (di) => {
|
||||
const createElectronWindow = di.inject(createElectronWindowForInjectable);
|
||||
const createElectronWindow = di.inject(createElectronWindowInjectable);
|
||||
|
||||
return (configuration: LensWindowConfiguration): LensWindow => {
|
||||
let browserWindow: ElectronWindow | undefined;
|
||||
|
||||
@@ -10,7 +10,7 @@ export const beforeQuitOfFrontEndInjectionToken = getInjectionToken<RunnableSync
|
||||
id: "before-quit-of-front-end",
|
||||
});
|
||||
|
||||
export const beforeQuitOfBackEndInjectionToken = getInjectionToken<RunnableSync>({
|
||||
export const beforeQuitOfBackEndInjectionToken = getInjectionToken<Runnable>({
|
||||
id: "before-quit-of-back-end",
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user