mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-12-17 04:26:47 +08:00
[fix] fix tab close button not working in stream window
This commit is contained in:
@@ -170,6 +170,20 @@ int Render::StreamWindow() {
|
|||||||
ImGui::EndTabItem();
|
ImGui::EndTabItem();
|
||||||
} else {
|
} else {
|
||||||
props->tab_selected_ = false;
|
props->tab_selected_ = false;
|
||||||
|
if (!props->tab_opened_) {
|
||||||
|
std::string remote_id_to_close = props->remote_id_;
|
||||||
|
// lock.unlock();
|
||||||
|
{
|
||||||
|
// std::unique_lock unique_lock(client_properties_mutex_);
|
||||||
|
auto close_it = client_properties_.find(remote_id_to_close);
|
||||||
|
if (close_it != client_properties_.end()) {
|
||||||
|
CloseTab(close_it);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// lock.lock();
|
||||||
|
it = client_properties_.begin();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user