cc: fix rogue tooltip

This commit is contained in:
bbedward committed 2026-10-10 18:17:44 -04:00
1 parent f1ea842bca
commit d7d7f73420
2 files changed
+3 -1

No files matched your search

@@ -10,6 +10,7 @@ CcTile {
toggle: false
active: finishing
tooltips: !finishing
iconName: finishing ? "check" : widgetDef?.icon ?? ""
title: widgetDef?.text ?? ""
restIconColor: action === "power" ? Theme.error : CcMetrics.tileInactiveIcon
@@ -58,6 +58,7 @@ Item {
property bool available: true
property bool interactive: true
property bool iconBlinking: false
property bool tooltips: true
property real iconRotation: 0
signal clicked
@@ -207,7 +208,7 @@ Item {
anchors.bottomMargin: root.expanded ? root.height - root.headerHeight - root.tilePadding * 2 : 0
stateColor: root.contentColor
cornerRadius: root.bodyRadius
tooltipText: root.compact || root.docked ? [root.title, root.subtitle].filter(text => text !== "").join(" · ") : ""
tooltipText: root.tooltips && (root.compact || root.docked) ? [root.title, root.subtitle].filter(text => text !== "").join(" · ") : ""
onClicked: root.activate()
onPressAndHold: root.expand()
onWheel: wheelEvent => {