From 806413035637e97893cb22665ce5fc020125fc8e Mon Sep 17 00:00:00 2001 From: dijunkun Date: Wed, 11 Oct 2023 15:20:53 +0800 Subject: [PATCH] Fix remote id cannot modify error --- remote_desk_gui/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/remote_desk_gui/main.cpp b/remote_desk_gui/main.cpp index f6ed101..60862f7 100644 --- a/remote_desk_gui/main.cpp +++ b/remote_desk_gui/main.cpp @@ -548,7 +548,9 @@ int main() { static const char *connect_label = "Connect"; { static char remote_id[20] = ""; - strcpy(remote_id, GetMac(mac_addr).c_str()); + if (strcmp(remote_id, "") == 0) { + strcpy(remote_id, GetMac(mac_addr).c_str()); + } ImGui::Text("REMOTE ID:"); ImGui::SameLine(); ImGui::SetNextItemWidth(110);