1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-30 12:53:51 +00:00

Improve "please wait" view in find zone window.

This commit is contained in:
Bartosz Taudul 2024-09-28 01:42:33 +02:00
parent d734aaa357
commit 39ee307409
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -265,7 +265,12 @@ void View::DrawFindZone()
#else #else
if( !m_worker.AreSourceLocationZonesReady() ) if( !m_worker.AreSourceLocationZonesReady() )
{ {
ImGui::TextWrapped( "Please wait, computing data..." ); const auto ty = ImGui::GetTextLineHeight();
ImGui::PushFont( m_bigFont );
ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 - ty ) * 0.5f ) );
TextCentered( ICON_FA_CROW );
TextCentered( "Please wait, computing data..." );
ImGui::PopFont();
DrawWaitingDots( s_time ); DrawWaitingDots( s_time );
ImGui::End(); ImGui::End();
return; return;