mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[fix] fix recent connection deletion
This commit is contained in:
@@ -155,9 +155,10 @@ int Render::ShowRecentConnections() {
|
|||||||
if (ImGui::Button(recent_connection_delete_button_name.c_str(),
|
if (ImGui::Button(recent_connection_delete_button_name.c_str(),
|
||||||
ImVec2(button_width, button_height))) {
|
ImVec2(button_width, button_height))) {
|
||||||
show_confirm_delete_connection_ = true;
|
show_confirm_delete_connection_ = true;
|
||||||
|
delete_connection_name_ = it->first;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (delete_connection_) {
|
if (delete_connection_ && delete_connection_name_ == it->first) {
|
||||||
if (!thumbnail_->DeleteThumbnail(it->first)) {
|
if (!thumbnail_->DeleteThumbnail(it->first)) {
|
||||||
reload_recent_connections_ = true;
|
reload_recent_connections_ = true;
|
||||||
delete_connection_ = false;
|
delete_connection_ = false;
|
||||||
|
|||||||
@@ -350,6 +350,7 @@ class Render {
|
|||||||
bool reload_recent_connections_ = true;
|
bool reload_recent_connections_ = true;
|
||||||
bool show_confirm_delete_connection_ = false;
|
bool show_confirm_delete_connection_ = false;
|
||||||
bool delete_connection_ = false;
|
bool delete_connection_ = false;
|
||||||
|
std::string delete_connection_name_ = "";
|
||||||
bool re_enter_remote_id_ = false;
|
bool re_enter_remote_id_ = false;
|
||||||
double copy_start_time_ = 0;
|
double copy_start_time_ = 0;
|
||||||
double regenerate_password_start_time_ = 0;
|
double regenerate_password_start_time_ = 0;
|
||||||
|
|||||||
2
thirdparty/projectx
vendored
2
thirdparty/projectx
vendored
Submodule thirdparty/projectx updated: fb00234498...1a34c6bc1d
Reference in New Issue
Block a user