mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-25 00:11:26 -07:00
feat(core): add Electron runtime, services, and app composition
This commit is contained in:
23
src/main/runtime/app-lifecycle-main-activate.ts
Normal file
23
src/main/runtime/app-lifecycle-main-activate.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
export function createBuildShouldRestoreWindowsOnActivateMainDepsHandler(deps: {
|
||||
isOverlayRuntimeInitialized: () => boolean;
|
||||
getAllWindowCount: () => number;
|
||||
}) {
|
||||
return () => ({
|
||||
isOverlayRuntimeInitialized: () => deps.isOverlayRuntimeInitialized(),
|
||||
getAllWindowCount: () => deps.getAllWindowCount(),
|
||||
});
|
||||
}
|
||||
|
||||
export function createBuildRestoreWindowsOnActivateMainDepsHandler(deps: {
|
||||
createMainWindow: () => void;
|
||||
createInvisibleWindow: () => void;
|
||||
updateVisibleOverlayVisibility: () => void;
|
||||
updateInvisibleOverlayVisibility: () => void;
|
||||
}) {
|
||||
return () => ({
|
||||
createMainWindow: () => deps.createMainWindow(),
|
||||
createInvisibleWindow: () => deps.createInvisibleWindow(),
|
||||
updateVisibleOverlayVisibility: () => deps.updateVisibleOverlayVisibility(),
|
||||
updateInvisibleOverlayVisibility: () => deps.updateInvisibleOverlayVisibility(),
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user