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);