1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Don't show empty menu when source is not available.

This commit is contained in:
Bartosz Taudul 2022-04-06 23:34:30 +02:00
parent 6854055b49
commit 0e56397c5a
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

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