From 1b0e8cdb318eb67c5d791835a09cccb1e1e7d9fe Mon Sep 17 00:00:00 2001 From: tao wang Date: Wed, 26 Mar 2025 12:11:50 +0800 Subject: [PATCH] ENH:direct connected devices support fram mode jira:[none] Change-Id: I539698e6440bf67b1951938c3c0b7d51ab74c1b3 --- src/slic3r/GUI/ReleaseNote.cpp | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/slic3r/GUI/ReleaseNote.cpp b/src/slic3r/GUI/ReleaseNote.cpp index 63a39012e..ea1ad77bb 100644 --- a/src/slic3r/GUI/ReleaseNote.cpp +++ b/src/slic3r/GUI/ReleaseNote.cpp @@ -2113,17 +2113,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; - } DeviceManager* dev = wxGetApp().getDeviceManager(); m_obj = dev->insert_local_device(detectData.dev_name, detectData.dev_id, str_ip, detectData.connect_type, detectData.bind_state, detectData.version, str_access_code);