mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Statistics view also can have no entries to display.
This commit is contained in:
parent
9ab2f35c08
commit
8d418760c0
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user