Better "please wait" view in compare window.

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

View File

@ -280,7 +280,12 @@ void View::DrawCompare()
if( !m_worker.AreSourceLocationZonesReady() || !m_compare.second->AreSourceLocationZonesReady() ) if( !m_worker.AreSourceLocationZonesReady() || !m_compare.second->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_FROG );
TextCentered( "Please wait, computing data..." );
ImGui::PopFont();
DrawWaitingDots( s_time ); DrawWaitingDots( s_time );
ImGui::End(); ImGui::End();
return; return;