fix duplicate on_AnyHoverChanged in Volume.qml
This commit is contained in:
parent
03554e5ad3
commit
26de0d6c4f
1 changed files with 7 additions and 8 deletions
|
|
@ -50,7 +50,13 @@ M.BarSection {
|
|||
}
|
||||
|
||||
on_ExpandedChanged: console.log("[vol] expanded →", _expanded)
|
||||
on_AnyHoverChanged: console.log("[vol] anyHover →", _anyHover, "| barHover:", root._hovered, "| panelHover:", hoverPanel.panelHovered)
|
||||
on_AnyHoverChanged: {
|
||||
console.log("[vol] anyHover →", _anyHover, "| barHover:", root._hovered, "| panelHover:", hoverPanel.panelHovered);
|
||||
if (_anyHover)
|
||||
_collapseTimer.stop();
|
||||
else if (_expanded)
|
||||
_collapseTimer.start();
|
||||
}
|
||||
|
||||
onVolumeChanged: _flashPanel()
|
||||
onMutedChanged: _flashPanel()
|
||||
|
|
@ -66,13 +72,6 @@ M.BarSection {
|
|||
onTriggered: root._osdActive = false
|
||||
}
|
||||
|
||||
on_AnyHoverChanged: {
|
||||
if (_anyHover)
|
||||
_collapseTimer.stop();
|
||||
else if (_expanded)
|
||||
_collapseTimer.start();
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: _collapseTimer
|
||||
interval: 1500
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue