fix(daemon-update): status tooltip only shows on icon hover, not when selected

The status-icon tooltip was gated on (hov || sel), so the newest version — which
is selected by default — kept its "Newest available version" tooltip pinned on
screen. Show it only while the mouse is actually over the icon.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-10 17:42:57 -05:00
parent 54945c94bf
commit c25a4e4150

View File

@@ -283,7 +283,10 @@ private:
float cs = bodyF->LegacySize * 1.3f;
ImVec2 cp(rmx.x - Layout::spacingMd() - cs, (rmn.y + rmx.y) * 0.5f - cs * 0.5f);
mdl->AddText(icoF, cs, cp, statusC, ico);
if ((hov || sel) && tt) Tooltip("%s", tt);
// Tooltip only while the icon itself is hovered — not while merely selected (the
// newest version is selected by default, which would pin its tooltip on screen).
if (tt && hov && ImGui::IsMouseHoveringRect(cp, ImVec2(cp.x + cs, cp.y + cs)))
Tooltip("%s", tt);
rightLimit = cp.x - Layout::spacingSm();
}
float x = rmn.x + Layout::spacingMd();