FIX: prevent the condition

jira: [STUDIO-10745] [STUDIO-11082]
Change-Id: I3b0ed2a58a4d873edf2bf92576ceaf2ecdb072d8
(cherry picked from commit 638585a4fcee5830fa7b02a51d7a12041ed64dad)
This commit is contained in:
xin.zhang 2025-03-22 20:33:24 +08:00 committed by Noisyfox
parent 55c8752509
commit 17288f7fe0

View file

@ -423,9 +423,8 @@ void MultiMachinePickPage::refresh_user_device()
std::vector<std::string> subscribe_list;
for (auto it = user_machine.begin(); it != user_machine.end(); ++it) {
if (it->second->m_extder_data.total_extder_count > 1) {
continue;
}
if (it->second->m_extder_data.total_extder_count > 1) { continue; }
if (it->second->printer_type == "O1D") { continue;} /*maybe total_extder_count is not valid, hard codes here. to be moved to printers json*/
DevicePickItem* di = new DevicePickItem(scroll_macine_list, it->second);