[vlc-commits] [Git][videolan/vlc][master] qml: fix warnings when opening/closing the docked playqueue for the first time
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Wed Mar 25 01:54:20 UTC 2026
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
1e10ca7b by Leon Vitanos at 2026-03-25T02:19:06+01:00
qml: fix warnings when opening/closing the docked playqueue for the first time
- - - - -
1 changed file:
- modules/gui/qt/maininterface/qml/MainDisplay.qml
Changes:
=====================================
modules/gui/qt/maininterface/qml/MainDisplay.qml
=====================================
@@ -202,8 +202,7 @@ FocusScope {
model: g_mainDisplay.tabModel
playlistPane: playlistLoader.active ? playlistLoader.item
- : (playlistWindowLoader.status === Loader.Ready ? playlistWindowLoader.item.playlistView
- : null)
+ : (playlistWindowLoader.item?.playlistView ?? null)
onItemClicked: (index) => {
const name = g_mainDisplay.tabModel.get(index).name
@@ -251,7 +250,7 @@ FocusScope {
layer.enabled: MainCtx.backdropBlurRequested() &&
(GraphicsInfo.shaderType === GraphicsInfo.RhiShader) &&
- (miniPlayer.visible || (loaderProgress.active && loaderProgress.item.visible))
+ (miniPlayer.visible || !!loaderProgress.item?.visible)
// Blurring requires to access neighbour pixels, thus the source texture should be bigger than
// the effect so that the effect have access to the neighbor pixels for the pixels near the
@@ -408,7 +407,7 @@ FocusScope {
state: ((status === Loader.Ready) && MainCtx.playlistVisible) ? "expanded" : ""
- readonly property bool shown: (status === Loader.Ready) && item.visible
+ readonly property bool shown: !!item?.visible
onVisibleChanged: {
if (!visible) {
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1e10ca7b946aa229354425b49e09a926a94051ef
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1e10ca7b946aa229354425b49e09a926a94051ef
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list