From 47e26fd62f1e910d6a3c70c5b78a09d1aa510f63 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Fri, 30 May 2025 12:22:03 +0200 Subject: [PATCH] dock: fix warnings --- .config/quickshell/modules/dock/DockApps.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/quickshell/modules/dock/DockApps.qml b/.config/quickshell/modules/dock/DockApps.qml index 13f6edaa..4e256f32 100644 --- a/.config/quickshell/modules/dock/DockApps.qml +++ b/.config/quickshell/modules/dock/DockApps.qml @@ -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 {