mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-10 04:46:07 -08:00
Restore multi-copy digit capture and add AniList selection (#56)
This commit is contained in:
1 parent
7ac51cd5e9
commit
d8934647a9
140 files changed
+4097
-326
No files matched your search
@@ -91,6 +91,8 @@ export interface MpvProtocolHandleMessageDeps {
|
||||
) => void;
|
||||
sendCommand: (payload: { command: unknown[]; request_id?: number }) => boolean;
|
||||
restorePreviousSecondarySubVisibility: () => void;
|
||||
shouldQuitOnMpvShutdown: () => boolean;
|
||||
requestAppQuit: () => void;
|
||||
}
|
||||
|
||||
type SubtitleTrackCandidate = {
|
||||
@@ -360,6 +362,9 @@ export async function dispatchMpvProtocolMessage(
|
||||
}
|
||||
} else if (msg.event === 'shutdown') {
|
||||
deps.restorePreviousSecondarySubVisibility();
|
||||
if (deps.shouldQuitOnMpvShutdown()) {
|
||||
deps.requestAppQuit();
|
||||
}
|
||||
} else if (msg.request_id) {
|
||||
if (deps.resolvePendingRequest(msg.request_id, msg)) {
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user