dock: fix warnings

This commit is contained in:
end-4 2025-05-30 12:22:03 +02:00
parent b870f6b930
commit 47e26fd62f

View file

@ -64,7 +64,9 @@ Item {
property bool allPreviewsReady: false
Connections {
target: root
onLastHoveredButtonChanged: previewPopup.allPreviewsReady = false; // Reset readiness when the hovered button changes
function onLastHoveredButtonChanged() {
previewPopup.allPreviewsReady = false; // Reset readiness when the hovered button changes
}
}
function updatePreviewReadiness() {
for(var i = 0; i < previewRowLayout.children.length; i++) {
@ -113,7 +115,7 @@ Item {
}
visible: popupBackground.visible
color: "transparent"
implicitWidth: root.QsWindow.window.width
implicitWidth: root.QsWindow.window?.width ?? 1
implicitHeight: popupMouseArea.implicitHeight + Appearance.sizes.elevationMargin * 2
MouseArea {