From 262c2e91b83b8ae6eabdfdd57c14671acda3cdbe Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sun, 17 May 2026 21:17:05 +0200 Subject: [PATCH] feat: show toast on dub-to-sub auto switch at player init --- static/player/main.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/player/main.ts b/static/player/main.ts index 55e0491..7389454 100644 --- a/static/player/main.ts +++ b/static/player/main.ts @@ -94,6 +94,11 @@ const initPlayer = (): void => { setupAutoplayButton(); updateAutoSkipButton(); showControls(); + if (state.modeSwitchedFrom === 'dub' && state.currentMode === 'sub') { + window.showToast?.({ + message: `Episode ${state.currentEpisode} is only available in sub, switched from dub.`, + }); + } const onLoadedMetadata = (): void => { loading && (loading.style.display = 'none');