mirror of https://code.videolan.org/videolan/vlc
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:
parent
48f6723f41
commit
62aaef36a8
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue