Show tooltip on disabled item.

This commit is contained in:
Bartosz Taudul
2021-12-01 17:41:00 +01:00
parent b4987f5fc4
commit ce7faf99c9

View File

@@ -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 );