From 8eaf64eac6944b070857a5d7eb5b385d6a5b8be2 Mon Sep 17 00:00:00 2001 From: Damocles Date: Mon, 13 Apr 2026 22:34:35 +0200 Subject: [PATCH] add deeper debug logging to HoverPanel and Volume --- modules/HoverPanel.qml | 10 +++++++++- modules/Volume.qml | 9 +++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/modules/HoverPanel.qml b/modules/HoverPanel.qml index e368042..03e5194 100644 --- a/modules/HoverPanel.qml +++ b/modules/HoverPanel.qml @@ -55,13 +55,17 @@ PanelWindow { interval: 50 onTriggered: { if (!root.showPanel) { + console.log("[hp:" + panelNamespace + "] hideTimer fired, starting hideAnim"); showAnim.stop(); hideAnim.start(); } } } + on_WinVisibleChanged: console.log("[hp:" + panelNamespace + "] _winVisible →", _winVisible) + onShowPanelChanged: { + console.log("[hp:" + panelNamespace + "] showPanel →", showPanel); if (showPanel) { _hideTimer.stop(); _updatePosition(); @@ -107,11 +111,15 @@ PanelWindow { duration: 150 easing.type: Easing.InCubic } + onStarted: console.log("[hp:" + panelNamespace + "] hideAnim started") onFinished: root._winVisible = false } HoverHandler { - onHoveredChanged: root.panelHovered = hovered + onHoveredChanged: { + console.log("[hp:" + panelNamespace + "] hovered →", hovered); + root.panelHovered = hovered; + } } M.PopupBackground { diff --git a/modules/Volume.qml b/modules/Volume.qml index 5419978..fd0e3e3 100644 --- a/modules/Volume.qml +++ b/modules/Volume.qml @@ -43,8 +43,13 @@ M.BarSection { readonly property bool _anyHover: root._hovered || hoverPanel.panelHovered readonly property bool _showPanel: _anyHover || _expanded || _osdActive - on_ShowPanelChanged: if (!_showPanel) - _expanded = false + on_ShowPanelChanged: { + console.log("[vol] showPanel →", _showPanel, "| expanded:", _expanded, "| anyHover:", _anyHover); + if (!_showPanel) + _expanded = false; + } + + on_ExpandedChanged: console.log("[vol] expanded →", _expanded) onVolumeChanged: _flashPanel() onMutedChanged: _flashPanel()