[feat] add cancel button during connecting

This commit is contained in:
dijunkun
2026-03-09 21:35:21 +08:00
parent 81cb1d6c0b
commit 8be46b870a
2 changed files with 15 additions and 0 deletions

View File

@@ -197,6 +197,9 @@ int Render::ConnectTo(const std::string& remote_id, const char* password,
props->control_window_max_width_ = title_bar_height_ * 9.0f;
props->control_window_max_height_ = title_bar_height_ * 7.0f;
props->connection_status_ = ConnectionStatus::Connecting;
show_connection_status_window_ = true;
if (!props->peer_) {
LOG_INFO("Create peer [{}] instance failed", props->local_id_);
return -1;