qml: Ctrl+L shortcut to open the playlist view now works the first time

Added 'updatePlaylistVisible' transition in the 'fsmForceHidden' FSMState of the PlayerPlaylistVisibilityFSM.qml.

Fixes Issue: #28500
This commit is contained in:
Ash V 2024-03-23 21:29:18 +05:30 committed by Steve Lhomme
parent 48f6723f41
commit 62aaef36a8
2 changed files with 10 additions and 10 deletions

View File

@ -284,8 +284,9 @@ FocusScope {
topMargin: VLCStyle.applicationVerticalMargin
sideMargin: VLCStyle.applicationHorizontalMargin
textWidth: (MainCtx.playlistVisible) ? rootPlayer.width - playlistpopup.width
: rootPlayer.width
textWidth: playlistVisibility.isPlaylistVisible
? rootPlayer.width - playlistpopup.width
: rootPlayer.width
// NOTE: With pinned controls, the top controls are hidden when switching to
// fullScreen. Except when resume is visible

View File

@ -69,9 +69,7 @@ Util.FSM {
transitions: ({
togglePlaylistVisibility: {
action: () => {
MainCtx.playlistVisible = !MainCtx.playlistVisible
}
action: () => { MainCtx.playlistVisible = !MainCtx.playlistVisible }
},
updatePlaylistDocked: {
guard: () => MainCtx.playlistDocked,
@ -106,7 +104,7 @@ Util.FSM {
transitions: ({
updatePlaylistVisible: {
guard: ()=> !MainCtx.playlistVisible,
guard: () => !MainCtx.playlistVisible,
target: fsmHidden
},
togglePlaylistVisibility: {
@ -130,7 +128,6 @@ Util.FSM {
}
})
}
}
Util.FSMState {
@ -141,10 +138,12 @@ Util.FSM {
guard: () => !MainCtx.hasEmbededVideo,
target: fsmFollowVisible
},
updatePlaylistVisible: {
guard: () => MainCtx.playlistVisible,
target: fsmFollowVisible
},
togglePlaylistVisibility: {
action: () => {
MainCtx.playlistVisible = true
},
action: () => { MainCtx.playlistVisible = true },
target: fsmFollowVisible
}
})