1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-30 04:43:53 +00:00

Show tooltip on disabled item.

This commit is contained in:
Bartosz Taudul 2021-12-01 17:41:00 +01:00
parent b4987f5fc4
commit ce7faf99c9
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -881,7 +881,7 @@ static void DrawContents()
ImGui::PushID( idx++ ); ImGui::PushID( idx++ );
const bool selected = ImGui::Selectable( name->second.c_str(), &sel, flags ); const bool selected = ImGui::Selectable( name->second.c_str(), &sel, flags );
ImGui::PopID(); ImGui::PopID();
if( ImGui::IsItemHovered() ) if( ImGui::IsItemHovered( ImGuiHoveredFlags_AllowWhenDisabled ) )
{ {
char portstr[32]; char portstr[32];
sprintf( portstr, "%" PRIu16, v.second.port ); sprintf( portstr, "%" PRIu16, v.second.port );