Statistics view also can have no entries to display.

This commit is contained in:
Bartosz Taudul 2024-10-04 22:34:40 +02:00
parent 9ab2f35c08
commit 8d418760c0
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -109,7 +109,11 @@ void View::DrawSamplesStatistics( Vector<SymList>& data, int64_t timeRange, Accu
if( data.empty() ) if( data.empty() )
{ {
ImGui::TextUnformatted( "No entries to be displayed." ); ImGui::PushFont( m_bigFont );
ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 ) * 0.5f ) );
TextCentered( ICON_FA_HIPPO );
TextCentered( "No entries to be displayed" );
ImGui::PopFont();
} }
else else
{ {