mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-10-27 11:35:23 -07:00
fix: harden AI subtitle fix response parsing
This commit is contained in:
22 files changed
+641
-55
No files matched your search
@@ -27,6 +27,20 @@ export interface OverlayShortcutLifecycleDeps {
|
||||
cancelPendingMineSentenceMultiple: () => void;
|
||||
}
|
||||
|
||||
export function shouldActivateOverlayShortcuts(args: {
|
||||
overlayRuntimeInitialized: boolean;
|
||||
isMacOSPlatform: boolean;
|
||||
trackedMpvWindowFocused: boolean;
|
||||
}): boolean {
|
||||
if (!args.overlayRuntimeInitialized) {
|
||||
return false;
|
||||
}
|
||||
if (!args.isMacOSPlatform) {
|
||||
return true;
|
||||
}
|
||||
return args.trackedMpvWindowFocused;
|
||||
}
|
||||
|
||||
export function registerOverlayShortcuts(
|
||||
shortcuts: ConfiguredShortcuts,
|
||||
handlers: OverlayShortcutHandlers,
|
||||
|
||||
Reference in new issue
Block a user