mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Streamline "waiting for connection" dialog.
This commit is contained in:
parent
3e34b3832a
commit
4b97528604
@ -432,17 +432,15 @@ bool View::DrawImpl()
|
||||
{
|
||||
if( !m_worker.HasData() )
|
||||
{
|
||||
bool keepOpen = true;
|
||||
char tmp[2048];
|
||||
sprintf( tmp, "%s###Connection", m_worker.GetAddr().c_str() );
|
||||
ImGui::Begin( tmp, nullptr, ImGuiWindowFlags_AlwaysAutoResize );
|
||||
ImGui::Begin( tmp, &keepOpen, ImGuiWindowFlags_AlwaysAutoResize );
|
||||
TextCentered( ICON_FA_WIFI );
|
||||
ImGui::TextUnformatted( "Waiting for connection..." );
|
||||
DrawWaitingDots( s_time );
|
||||
ImGui::Spacing();
|
||||
ImGui::Separator();
|
||||
bool wasCancelled = ImGui::Button( "Cancel" );
|
||||
ImGui::End();
|
||||
return !wasCancelled;
|
||||
return keepOpen;
|
||||
}
|
||||
|
||||
if( !m_uarchSet )
|
||||
|
Loading…
Reference in New Issue
Block a user