Improve "no wait stacks" view.

This commit is contained in:
Bartosz Taudul 2024-10-15 01:51:58 +02:00
parent 8a7f540d7c
commit 1ab0b5abd2
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -508,7 +508,11 @@ void View::DrawWaitStacks()
ImGui::BeginChild( "##waitstacks" ); ImGui::BeginChild( "##waitstacks" );
if( stacks.empty() ) if( stacks.empty() )
{ {
ImGui::TextUnformatted( "No wait stacks to display." ); ImGui::PushFont( m_bigFont );
ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 ) * 0.5f ) );
TextCentered( ICON_FA_KIWI_BIRD );
TextCentered( "No wait stacks to display" );
ImGui::PopFont();
} }
else else
{ {