Simplify condition.

This commit is contained in:
Bartosz Taudul 2024-10-16 00:11:57 +02:00
parent c2b4e81493
commit 44bb5d474b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -213,26 +213,23 @@ void View::DrawCallstackTable( uint32_t callstack, bool globalEntriesButton )
continue; continue;
} }
} }
else else if( external != 0 )
{ {
if( external != 0 ) ImGui::TableNextRow();
ImGui::TableNextColumn();
ImGui::PushFont( m_smallFont );
TextDisabledUnformatted( "external" );
ImGui::TableNextColumn();
if( external == 1 )
{ {
ImGui::TableNextRow(); TextDisabledUnformatted( "1 frame" );
ImGui::TableNextColumn();
ImGui::PushFont( m_smallFont );
TextDisabledUnformatted( "external" );
ImGui::TableNextColumn();
if( external == 1 )
{
TextDisabledUnformatted( "1 frame" );
}
else
{
ImGui::TextDisabled( "%i frames", external );
}
ImGui::PopFont();
external = 0;
} }
else
{
ImGui::TextDisabled( "%i frames", external );
}
ImGui::PopFont();
external = 0;
} }
ImGui::TableNextRow(); ImGui::TableNextRow();