mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-25 00:11:26 -07:00
22 lines
778 B
TypeScript
22 lines
778 B
TypeScript
export function createBuildShouldRestoreWindowsOnActivateMainDepsHandler(deps: {
|
|
isOverlayRuntimeInitialized: () => boolean;
|
|
getAllWindowCount: () => number;
|
|
}) {
|
|
return () => ({
|
|
isOverlayRuntimeInitialized: () => deps.isOverlayRuntimeInitialized(),
|
|
getAllWindowCount: () => deps.getAllWindowCount(),
|
|
});
|
|
}
|
|
|
|
export function createBuildRestoreWindowsOnActivateMainDepsHandler(deps: {
|
|
createMainWindow: () => void;
|
|
updateVisibleOverlayVisibility: () => void;
|
|
syncOverlayMpvSubtitleSuppression: () => void;
|
|
}) {
|
|
return () => ({
|
|
createMainWindow: () => deps.createMainWindow(),
|
|
updateVisibleOverlayVisibility: () => deps.updateVisibleOverlayVisibility(),
|
|
syncOverlayMpvSubtitleSuppression: () => deps.syncOverlayMpvSubtitleSuppression(),
|
|
});
|
|
}
|