From 13b5ac92d869b696b7786c129a684a2e11300e7c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 22 Mar 2020 18:55:45 +0100 Subject: [PATCH] Add notification about display of empty labels. --- server/TracyView.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 05884bfc..89427226 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -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();