feat: show toast on dub-to-sub auto switch at player init

This commit is contained in:
2026-05-17 21:17:05 +02:00
parent c2ed9fabc2
commit 262c2e91b8

View File

@@ -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');