summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell/quickshell/WorktimeWidget.qml
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/WorktimeWidget.qml')
-rw-r--r--accounts/gkleen@sif/shell/quickshell/WorktimeWidget.qml9
1 files changed, 6 insertions, 3 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/WorktimeWidget.qml b/accounts/gkleen@sif/shell/quickshell/WorktimeWidget.qml
index 0e07ff59..b7baee34 100644
--- a/accounts/gkleen@sif/shell/quickshell/WorktimeWidget.qml
+++ b/accounts/gkleen@sif/shell/quickshell/WorktimeWidget.qml
@@ -116,7 +116,10 @@ Item {
116 required property var state 116 required property var state
117 required property var mouseArea 117 required property var mouseArea
118 118
119 property bool nextVisible: (tooltipText.visible || tooltipIcon.visible) && (tooltip.mouseArea.containsMouse || tooltipMouseArea.containsMouse) 119 property bool iconVisible: tooltip.state.running || !tooltip.state.updating
120 property bool tooltipVisible: tooltip.state.state?.tooltip ?? false
121
122 property bool nextVisible: (tooltip.tooltipVisible || tooltip.iconVisible) && (tooltip.mouseArea.containsMouse || tooltipMouseArea.containsMouse)
120 123
121 anchor { 124 anchor {
122 item: tooltip.mouseArea 125 item: tooltip.mouseArea
@@ -169,7 +172,7 @@ Item {
169 implicitSize: 14 172 implicitSize: 14
170 anchors.verticalCenter: parent.verticalCenter 173 anchors.verticalCenter: parent.verticalCenter
171 174
172 visible: tooltip.state.running || !tooltip.state.updating 175 visible: tooltip.iconVisible
173 176
174 icon: tooltip.state.running ? "update" : "timer-off" 177 icon: tooltip.state.running ? "update" : "timer-off"
175 } 178 }
@@ -183,7 +186,7 @@ Item {
183 Text { 186 Text {
184 id: tooltipText 187 id: tooltipText
185 188
186 visible: tooltip.state.state?.tooltip ?? false 189 visible: tooltip.tooltipVisible
187 190
188 anchors.verticalCenter: parent.verticalCenter 191 anchors.verticalCenter: parent.verticalCenter
189 192