Add notification about display of empty labels.

This commit is contained in:
Bartosz Taudul 2020-03-22 18:55:45 +01:00
parent 4ae13ff3dd
commit 13b5ac92d8

View File

@ -786,6 +786,22 @@ void View::DrawNotificationArea()
}
}
}
if( m_vd.drawEmptyLabels )
{
ImGui::SameLine();
#ifdef TRACY_EXTENDED_FONT
TextColoredUnformatted( ImVec4( 1, 0.5, 0, 1 ), ICON_FA_EXPAND );
#else
TextColoredUnformatted( ImVec4( 1, 0.5, 0, 1 ), "labels" );
#endif
if( ImGui::IsItemHovered() )
{
ImGui::BeginTooltip();
ImGui::TextUnformatted( "Displaying empty labels." );
ImGui::EndTooltip();
if( ImGui::IsMouseClicked( 0 ) ) m_vd.drawEmptyLabels = false;
}
}
if( !m_vd.drawContextSwitches )
{
ImGui::SameLine();