diff --git a/src/core/services/mpv-protocol.test.ts b/src/core/services/mpv-protocol.test.ts index f72f170..7c1639f 100644 --- a/src/core/services/mpv-protocol.test.ts +++ b/src/core/services/mpv-protocol.test.ts @@ -133,12 +133,6 @@ test('dispatchMpvProtocolMessage enforces sub-visibility hidden when overlay sup { command: ['set_property', 'sub-visibility', false], }, - { - command: ['set_property', 'sub-visibility', 'no'], - }, - { - command: ['set', 'sub-visibility', 'no'], - }, ]); }); diff --git a/src/core/services/mpv-protocol.ts b/src/core/services/mpv-protocol.ts index b91a094..d35288e 100644 --- a/src/core/services/mpv-protocol.ts +++ b/src/core/services/mpv-protocol.ts @@ -219,8 +219,6 @@ export async function dispatchMpvProtocolMessage( } else if (msg.name === 'sub-visibility') { if (deps.isVisibleOverlayVisible() && asBoolean(msg.data, false)) { deps.sendCommand({ command: ['set_property', 'sub-visibility', false] }); - deps.sendCommand({ command: ['set_property', 'sub-visibility', 'no'] }); - deps.sendCommand({ command: ['set', 'sub-visibility', 'no'] }); } } else if (msg.name === 'sub-use-margins') { deps.emitSubtitleMetricsChange({ diff --git a/src/main.ts b/src/main.ts index 12eef0c..7c8109a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -2510,8 +2510,8 @@ async function syncYomitanDefaultProfileAnkiServer(): Promise { if (updated) { logger.info(`Yomitan default profile Anki server set to ${targetUrl}`); + lastSyncedYomitanAnkiServer = targetUrl; } - lastSyncedYomitanAnkiServer = targetUrl; } function createOverlayWindow(kind: 'visible' | 'modal'): BrowserWindow {