From 0e56397c5a05b3f477812fdd3918a4720400a55a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 6 Apr 2022 23:34:30 +0200 Subject: [PATCH] Don't show empty menu when source is not available. --- server/TracySourceView.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 68e6752f..33ceb0c0 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -2553,6 +2553,10 @@ uint64_t SourceView::RenderSymbolAsmView( const AddrStatData& as, Worker& worker UnsetFont(); } } + else + { + TextDisabledUnformatted( "Source not available" ); + } ImGui::EndMenu(); } ImGui::PopID(); @@ -2584,6 +2588,10 @@ uint64_t SourceView::RenderSymbolAsmView( const AddrStatData& as, Worker& worker UnsetFont(); } } + else + { + TextDisabledUnformatted( "Source not available" ); + } ImGui::EndMenu(); } }