mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Display appropriate notification when there's no message data.
This commit is contained in:
parent
9fc9f71666
commit
9556878b23
@ -7864,6 +7864,13 @@ void View::DrawMessages()
|
||||
ImGui::SetNextWindowSize( ImVec2( 1200, 600 ), ImGuiCond_FirstUseEver );
|
||||
ImGui::Begin( "Messages", &m_showMessages );
|
||||
|
||||
if( msgs.empty() )
|
||||
{
|
||||
ImGui::TextUnformatted( "No messages were collected." );
|
||||
ImGui::End();
|
||||
return;
|
||||
}
|
||||
|
||||
size_t tsz = 0;
|
||||
for( const auto& t : m_threadOrder ) if( !t->messages.empty() ) tsz++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user