Skip to content

Commit 9298545

Browse files
committed
fix power report metric dropdown tooltip
1 parent 6d4265a commit 9298545

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/Classes/CompareTab.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,13 @@ function CompareTabClass:InitControls()
946946
end
947947
end)
948948
self.controls.comparePowerStatSelect.shown = powerReportShown
949-
self.controls.comparePowerStatSelect.tooltipText = "Select a metric to calculate power report"
949+
self.controls.comparePowerStatSelect.tooltipFunc = function(tooltip, mode, index, value)
950+
tooltip:Clear()
951+
if mode == "OUT" or self.controls.comparePowerStatSelect.dropped then
952+
return
953+
end
954+
tooltip:AddLine(14, "Select a metric to calculate power report")
955+
end
950956

951957
-- Category checkboxes
952958
self.controls.comparePowerTreeCheck = new("CheckBoxControl", nil, {0, 0, 18}, "Tree:", function(state)

0 commit comments

Comments
 (0)