mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Add IP/port tooltip to discovered clients list.
This commit is contained in:
parent
c6bb08355c
commit
e30161c34e
@ -639,6 +639,15 @@ static void DrawContents()
|
||||
ImGuiSelectableFlags flags = ImGuiSelectableFlags_SpanAllColumns;
|
||||
if( badProto ) flags |= ImGuiSelectableFlags_Disabled;
|
||||
const bool selected = ImGui::Selectable( name->second.c_str(), &sel, flags );
|
||||
if( ImGui::IsItemHovered() )
|
||||
{
|
||||
char portstr[32];
|
||||
sprintf( portstr, "%" PRIu32, v.second.port );
|
||||
ImGui::BeginTooltip();
|
||||
tracy::TextFocused( "IP:", v.second.address.c_str() );
|
||||
tracy::TextFocused( "Port:", portstr );
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
if( v.second.port != port )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
|
Loading…
Reference in New Issue
Block a user