mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Fix remote id cannot modify error
This commit is contained in:
@@ -548,7 +548,9 @@ int main() {
|
|||||||
static const char *connect_label = "Connect";
|
static const char *connect_label = "Connect";
|
||||||
{
|
{
|
||||||
static char remote_id[20] = "";
|
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::Text("REMOTE ID:");
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::SetNextItemWidth(110);
|
ImGui::SetNextItemWidth(110);
|
||||||
|
|||||||
Reference in New Issue
Block a user