mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 16:34:02 +01:00
Apply autostartVideoOnPlaySelected to queue (#2896)
This commit is contained in:
parent
5db42f4882
commit
e6b7d40784
2 changed files with 4 additions and 2 deletions
|
|
@ -538,6 +538,8 @@ const SceneLoader: React.FC = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const autoplay = queryParams?.autoplay === "true";
|
const autoplay = queryParams?.autoplay === "true";
|
||||||
|
const autoPlayOnSelected =
|
||||||
|
configuration?.interface.autostartVideoOnPlaySelected ?? false;
|
||||||
const currentQueueIndex = queueScenes
|
const currentQueueIndex = queueScenes
|
||||||
? queueScenes.findIndex((s) => s.id === id)
|
? queueScenes.findIndex((s) => s.id === id)
|
||||||
: -1;
|
: -1;
|
||||||
|
|
@ -621,7 +623,7 @@ const SceneLoader: React.FC = () => {
|
||||||
function playScene(sceneID: string, newPage?: number) {
|
function playScene(sceneID: string, newPage?: number) {
|
||||||
sceneQueue.playScene(history, sceneID, {
|
sceneQueue.playScene(history, sceneID, {
|
||||||
newPage,
|
newPage,
|
||||||
autoPlay: true,
|
autoPlay: autoPlayOnSelected,
|
||||||
continue: continuePlaylist,
|
continue: continuePlaylist,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -519,7 +519,7 @@
|
||||||
"options": {
|
"options": {
|
||||||
"auto_start_video": "Auto-start video",
|
"auto_start_video": "Auto-start video",
|
||||||
"auto_start_video_on_play_selected": {
|
"auto_start_video_on_play_selected": {
|
||||||
"description": "Auto-start scene videos when playing selected or random from Scenes page",
|
"description": "Auto-start scene videos when playing from queue, or playing selected or random from Scenes page",
|
||||||
"heading": "Auto-start video when playing selected"
|
"heading": "Auto-start video when playing selected"
|
||||||
},
|
},
|
||||||
"continue_playlist_default": {
|
"continue_playlist_default": {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue