mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix: 'ActionSheet closed without resolving' error
prevent error when ActionSheet dialog is closed without selection
This commit is contained in:
parent
572de64bc7
commit
b39889b344
1 changed files with 14 additions and 5 deletions
|
@ -982,6 +982,8 @@ export default function (view) {
|
||||||
stats: true,
|
stats: true,
|
||||||
suboffset: showSubOffset,
|
suboffset: showSubOffset,
|
||||||
onOption: onSettingsOption
|
onOption: onSettingsOption
|
||||||
|
}).catch(() => {
|
||||||
|
// prevent 'ActionSheet closed without resolving' error
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
resetIdle();
|
resetIdle();
|
||||||
});
|
});
|
||||||
|
@ -1055,6 +1057,8 @@ export default function (view) {
|
||||||
if (index !== currentIndex) {
|
if (index !== currentIndex) {
|
||||||
playbackManager.setAudioStreamIndex(index, player);
|
playbackManager.setAudioStreamIndex(index, player);
|
||||||
}
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
// prevent 'ActionSheet closed without resolving' error
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
resetIdle();
|
resetIdle();
|
||||||
});
|
});
|
||||||
|
@ -1102,10 +1106,11 @@ export default function (view) {
|
||||||
playbackManager.setSecondarySubtitleStreamIndex(index, player);
|
playbackManager.setSecondarySubtitleStreamIndex(index, player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
}).catch(() => {
|
||||||
.finally(() => {
|
// prevent 'ActionSheet closed without resolving' error
|
||||||
resetIdle();
|
}).finally(() => {
|
||||||
});
|
resetIdle();
|
||||||
|
});
|
||||||
|
|
||||||
setTimeout(resetIdle, 0);
|
setTimeout(resetIdle, 0);
|
||||||
}
|
}
|
||||||
|
@ -1182,6 +1187,8 @@ export default function (view) {
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleSubtitleSync();
|
toggleSubtitleSync();
|
||||||
|
}).catch(() => {
|
||||||
|
// prevent 'ActionSheet closed without resolving' error
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
resetIdle();
|
resetIdle();
|
||||||
});
|
});
|
||||||
|
@ -1217,7 +1224,9 @@ export default function (view) {
|
||||||
scrollY: true
|
scrollY: true
|
||||||
}).then(
|
}).then(
|
||||||
chapterStartPositionTicks => playbackManager.seek(chapterStartPositionTicks, player)
|
chapterStartPositionTicks => playbackManager.seek(chapterStartPositionTicks, player)
|
||||||
).finally(() => {
|
).catch(() => {
|
||||||
|
// prevent 'ActionSheet closed without resolving' error
|
||||||
|
}).finally(() => {
|
||||||
resetIdle();
|
resetIdle();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue