FIX: the machine status is not refreshed after unbinding in lan mode

jira: STUDIO-10017
Change-Id: I62f955c47fbf7c59782ec8a7a7e316ef020942a5
This commit is contained in:
zhimin.zeng 2025-01-20 18:07:37 +08:00 committed by lane.wei
parent 87bc6b8345
commit 66b5ef0d86
2 changed files with 6 additions and 0 deletions

View File

@ -2209,6 +2209,9 @@ void GUI_App::init_networking_callbacks()
if (obj) {
obj->parse_json(msg, DeviceManager::key_field_only);
}
if (GUI::wxGetApp().plater())
GUI::wxGetApp().plater()->update_machine_sync_status();
});
};
m_agent->set_on_local_message_fn(lan_message_arrive_fn);

View File

@ -682,6 +682,9 @@ void SelectMachinePopup::update_user_devices()
mobj->erase_user_access_code();
}
if (GUI::wxGetApp().plater())
GUI::wxGetApp().plater()->update_machine_sync_status();
MessageDialog msg_wingow(nullptr, _L("Log out successful."), "", wxAPPLY | wxOK);
if (msg_wingow.ShowModal() == wxOK) { return; }
});