From 3bc32c8b04d3b0fee7c2a0e72fe16a10fd972fb1 Mon Sep 17 00:00:00 2001 From: AsTechEvolves Date: Sat, 21 Nov 2026 08:35:49 -0600 Subject: [PATCH] Send dialog no longer blocks non-Bambu printers whose model name differs from the model id (#17519) BUG - save the preset's model id, not its name, as a non-Bambu printer's type and repair saved entries in GUI_App::select_machine --- src/slic3r/GUI/GUI_App.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 506a550713..46cf29cc39 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -4511,6 +4511,11 @@ void GUI_App::select_machine(const std::string& agent_id) } } + // Orca: the print dialog blocks a printer whose type differs from the preset's model id, so the + // type must be that id, not the model name. A model no vendor profile lists has no id; the + // dialog accepts any printer then, and the name stays. + const std::string model_id = preset_bundle->printers.get_edited_preset().get_printer_type(preset_bundle); + // If machine doesn't exist, create it first. The Orca agent never connects, so an entry saved // under it holds no binding; re-insert it for the active agent, whose machine list can't see // it otherwise. Entries bound by any other agent stay with that agent. @@ -4520,7 +4525,7 @@ void GUI_App::select_machine(const std::string& agent_id) // We use dev_id as dev_ip to store the address (host:port) machine.dev_ip = dev_id; machine.dev_name = dev_id; - machine.printer_type = preset.config.opt_string("printer_model"); + machine.printer_type = model_id.empty() ? preset.config.opt_string("printer_model") : model_id; existing = m_device_manager->insert_local_device( machine, "lan", "free", "", access_code); @@ -4534,6 +4539,11 @@ void GUI_App::select_machine(const std::string& agent_id) (!existing->has_access_right() || existing->get_access_code() != access_code)) { existing->set_access_code(access_code); } + // Entries saved before held the model name; this printer's preset gives the id to repair them. + if (!model_id.empty() && existing->printer_agent_id == agent_id && existing->printer_type != model_id) { + existing->printer_type = model_id; + DeviceManager::update_local_machine(*existing, app_config); + } existing->local_use_ssl = boost::istarts_with(print_host, "https://"); select_dev(dev_id); }