From ce7faf99c9fd3c310b0550f4fc55bcfa2f0c4ec6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 1 Dec 2021 17:41:00 +0100 Subject: [PATCH] Show tooltip on disabled item. --- profiler/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index b8bf8939..6ca614f4 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -881,7 +881,7 @@ static void DrawContents() ImGui::PushID( idx++ ); const bool selected = ImGui::Selectable( name->second.c_str(), &sel, flags ); ImGui::PopID(); - if( ImGui::IsItemHovered() ) + if( ImGui::IsItemHovered( ImGuiHoveredFlags_AllowWhenDisabled ) ) { char portstr[32]; sprintf( portstr, "%" PRIu16, v.second.port );