forked from Shinonome/dots-hyprland
dock: fix warnings
This commit is contained in:
@@ -64,7 +64,9 @@ Item {
|
|||||||
property bool allPreviewsReady: false
|
property bool allPreviewsReady: false
|
||||||
Connections {
|
Connections {
|
||||||
target: root
|
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() {
|
function updatePreviewReadiness() {
|
||||||
for(var i = 0; i < previewRowLayout.children.length; i++) {
|
for(var i = 0; i < previewRowLayout.children.length; i++) {
|
||||||
@@ -113,7 +115,7 @@ Item {
|
|||||||
}
|
}
|
||||||
visible: popupBackground.visible
|
visible: popupBackground.visible
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
implicitWidth: root.QsWindow.window.width
|
implicitWidth: root.QsWindow.window?.width ?? 1
|
||||||
implicitHeight: popupMouseArea.implicitHeight + Appearance.sizes.elevationMargin * 2
|
implicitHeight: popupMouseArea.implicitHeight + Appearance.sizes.elevationMargin * 2
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|||||||
Reference in New Issue
Block a user