Fix printer agent firmware check and send dialog name list (#16970)

MachineObject::upgrade_display_state lost its initializer when it became an enum, and only Bambu status messages assign it. Printer agent printers (Moonraker, Qidi) kept whatever value was in memory, so the Print and Send dialogs could block an idle printer as "updating firmware". It now starts at UpgradingUnavaliable, the value it had before.

The Send to Printer dialog now labels printers with get_shown_printer_name(), so printer agent printers show "Name (IP)" and Bambu labels are unchanged. Printers that share a name each get their own entry, where before every entry pointed to the first printer with that name.

(cherry picked from commit d81a212f53)
This commit is contained in:
TheLegendTubaGuy authored and SoftFever committed 2026-11-01 09:53:53 +08:00
1 parent 7050df0513
commit e8924f30d7
5 files changed
+9 -31

No files matched your search

+1 -1
View File
@@ -184,7 +184,7 @@ std::string get_nozzle_volume_type_cloud_string(NozzleVolumeType nozzle_volume_t
static int s_nozzle_mapping_last_request_time = 0;
// Printer agents name a printer after its model, so two printers of one model are told apart by their address.
static wxString get_shown_printer_name(const MachineObject* obj)
wxString get_shown_printer_name(const MachineObject* obj)
{
const wxString name = wxString::FromUTF8(obj->get_dev_name());
if (!obj->printer_agent_id.empty() && obj->printer_agent_id != BBL_PRINTER_AGENT_ID && !obj->get_dev_ip().empty() &&