mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-03-13 06:46:11 -06:00
ENH:direct connected devices support fram mode
jira:[none] Change-Id: I539698e6440bf67b1951938c3c0b7d51ab74c1b3 (cherry picked from commit 1b0e8cdb318eb67c5d791835a09cccb1e1e7d9fe)
This commit is contained in:
parent
6c03cd6178
commit
2bc9cb4441
1 changed files with 12 additions and 9 deletions
|
|
@ -2138,17 +2138,20 @@ void InputIpAddressDialog::workerThreadFunc(std::string str_ip, std::string str_
|
|||
return;
|
||||
}
|
||||
|
||||
if (detectData.bind_state == "occupied") {
|
||||
post_update_test_msg(wxEmptyString, true);
|
||||
post_update_test_msg(_L("The printer has already been bound."), false);
|
||||
return;
|
||||
if (detectData.connect_type != "farm") {
|
||||
if (detectData.bind_state == "occupied") {
|
||||
post_update_test_msg(wxEmptyString, true);
|
||||
post_update_test_msg(_L("The printer has already been bound."), false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (detectData.connect_type == "cloud") {
|
||||
post_update_test_msg(wxEmptyString, true);
|
||||
post_update_test_msg(_L("The printer mode is incorrect, please switch to LAN Only."), false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (detectData.connect_type == "cloud") {
|
||||
post_update_test_msg(wxEmptyString, true);
|
||||
post_update_test_msg(_L("The printer mode is incorrect, please switch to LAN Only."), false);
|
||||
return;
|
||||
}
|
||||
|
||||
CallAfter([this, detectData, str_ip, str_access_code]() {
|
||||
DeviceManager* dev = wxGetApp().getDeviceManager();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue