Files
OrcaSlicer/src/slic3r/GUI
grant0013 32cf78d0e6 harktech: move CFS filament sync into CrealityPrintAgent
Per @SoftFever review on #13752, printer-specific filament sync logic
belongs in the agent rather than in Sidebar. This consolidates the
previously-duplicated code so all CFS-specific work lives in
CrealityPrintAgent.

Changes:
- New: CrealityPrintAgent::sync_filaments_into_ams_list() — static method
  that builds a CrealityPrint host from a printer_cfg, queries CFS slots,
  populates PresetBundle::filament_ams_list, and triggers sync_ams_list().
  GUI-free; returns a result struct (Status + counts + detail) so the
  caller decides what dialog to show.
- New: nested CFSAmsListResult struct describing the five possible
  outcomes (Success / NotCfsCapable / QueryFailed / EmptySlots / NoMatches).
- Removed: Sidebar::sync_filaments_from_creality_cfs() entirely (its body
  is now the agent method).
- Plater.hpp loses the declaration; Plater.cpp dispatches to the agent
  inline within sync_ams_list() and owns only the dialog + post-sync UI
  refresh (combo updates, layout, preset selection, persistence).

Two CFS-related entry points on the agent now coexist:
- fetch_filament_info() — agent-driven path; publishes via AmsTrayData
  and build_ams_payload(). Active when a MachineObject is bound (BBL
  concept, not currently created for Creality LAN hosts).
- sync_filaments_into_ams_list() — explicit-pull path used today by the
  Sidebar's "Sync filaments" button until the K-series MachineObject
  work catches up.

No user-visible behaviour change — same end-to-end flow, the data work
just lives in the agent now.
2026-05-20 11:17:06 +00:00
..
2022-12-15 04:38:15 -05:00
2026-03-09 20:52:12 +08:00
2026-05-18 12:58:58 +08:00
2026-04-28 16:57:02 +08:00
2025-10-28 15:29:50 +08:00
2026-04-28 16:57:02 +08:00
2025-10-05 16:02:17 +08:00
2026-04-20 19:27:38 -03:00
2026-01-03 23:06:57 +08:00
2025-07-06 11:34:47 +08:00
2026-02-04 11:40:02 +00:00
2023-12-01 10:42:45 +00:00
2022-12-15 04:38:15 -05:00
2022-12-15 04:38:15 -05:00
2023-08-30 23:38:33 +08:00
2026-05-11 19:38:40 +08:00
2026-05-18 12:58:58 +08:00
2026-05-18 12:58:58 +08:00
2025-08-22 20:02:26 +08:00
2023-12-01 10:42:45 +00:00
2025-09-21 13:47:51 +08:00
2025-10-02 09:30:48 +08:00
2025-10-02 09:30:48 +08:00
…
2026-05-18 12:58:58 +08:00
2023-08-09 13:42:41 +08:00
2025-10-02 09:30:48 +08:00
2025-10-28 15:29:56 +08:00
2025-10-28 15:29:56 +08:00
…
2026-05-16 01:12:30 +08:00
2026-05-16 01:12:30 +08:00
2025-09-21 23:01:08 +08:00
2026-01-23 17:05:56 +08:00
2026-04-25 18:14:51 +08:00
2026-04-25 18:14:51 +08:00
2026-03-11 17:20:12 -07:00
2026-04-25 18:14:51 +08:00
2026-04-25 18:14:51 +08:00
2026-05-10 02:21:13 +08:00
2026-01-23 17:05:56 +08:00
2026-03-09 20:36:36 +08:00
2024-07-23 18:00:21 +08:00
2026-01-03 23:06:57 +08:00
2026-01-23 17:05:56 +08:00
2026-01-03 23:06:57 +08:00
2026-05-10 02:21:13 +08:00
2026-05-11 19:38:40 +08:00
2026-02-04 11:40:02 +00:00
2026-01-23 17:05:56 +08:00
2026-01-23 17:05:56 +08:00
2025-10-28 15:30:06 +08:00
2025-11-19 13:51:52 +03:00
2025-10-28 15:29:56 +08:00
2026-04-25 18:14:51 +08:00
2026-04-25 18:14:51 +08:00