From c25a4e4150506638ef269add5d6fc3308910d8c4 Mon Sep 17 00:00:00 2001 From: DanS Date: Fri, 10 Jul 2026 17:42:57 -0500 Subject: [PATCH] fix(daemon-update): status tooltip only shows on icon hover, not when selected MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- src/ui/windows/daemon_download_dialog.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/windows/daemon_download_dialog.h b/src/ui/windows/daemon_download_dialog.h index 24115e7..ebfb9ce 100644 --- a/src/ui/windows/daemon_download_dialog.h +++ b/src/ui/windows/daemon_download_dialog.h @@ -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();