Allow cancelling pending connection.

This commit is contained in:
Bartosz Taudul 2018-10-23 19:03:01 +02:00
parent c3ba314700
commit 63f0dd72a5

View File

@ -526,8 +526,9 @@ bool View::DrawImpl()
TextCentered( ICON_FA_WIFI );
#endif
ImGui::Text( "Waiting for connection..." );
bool wasCancelled = ImGui::Button( "Cancel" );
ImGui::End();
return true;
return !wasCancelled;
}
if( !m_frames ) m_frames = m_worker.GetFramesBase();