Triage: #15528 — Compare Presets shows UUID instead of name
Verdict: reproducible/fixable on Linux (GUI bug).
Why it is a real code defect
- The Compare presets dialog (
DiffPresetDialog) builds both its preset dropdowns and its "A vs B" tree header from the internal Preset::name:
src/slic3r/GUI/UnsavedChangesDialog.cpp:2161-2172 creates plain PresetComboBox widgets for printer/print/filament rows.
src/slic3r/GUI/PresetComboBoxes.cpp:494-497 — PresetComboBox::get_preset_name() returns from_u8(preset.name).
src/slic3r/GUI/UnsavedChangesDialog.cpp:2523 — header text format_wxstr(_L("\"%1%\" vs \"%2%\""), left_preset->name, right_preset->name).
- Every other place in the UI shows the display name through
Preset::label() (which returns alias when set): sidebar combos PresetComboBoxes.cpp:1229-1232, preset tabs :1779-1785, GUI_Factories.cpp:1213/2002/2729, Plater.cpp:4756/16458, calib_dlg.cpp:176. Preset::label() is at src/libslic3r/Preset.cpp:959-963.
- Printer presets therefore look correct (their internal name is the readable model string), while user filament/process presets whose internal name is a UUID/setting_id (imported bundles, cloud-synced presets — see
src/slic3r/Utils/OrcaCloudServiceAgent.cpp:1163-1165, where a preset with no name is named after the cloud UUID, and alias derivation in src/libslic3r/Preset.cpp:4580-4606) leak the UUID into the dialog. This matches the report exactly: printer OK, filament + process show a long UUID.
Reproduction on this machine
- GUI-only, platform-independent (no printer, cloud or OS-specific behaviour needed). Under Xvfb: drop a user filament/process preset whose internal name is a UUID with the human name in the alias (or import a preset bundle that yields such presets), start a project, open the sidebar "A:B" compare-presets dialog and read the combos/tree header. The fix (use
preset.label(false) / get_preset_alias() in the diff dialog's combos and header, keeping alias→name resolution for find_preset()/update_compatibility(), cf. the existing alias resolution helper at PresetComboBoxes.cpp:1443-1449) is also assertable with a small unit/GUI test since it is purely a name-resolution change.
Note: get_selection() (UnsavedChangesDialog.cpp:2144-2147) feeds the displayed string into presets->find_preset() and update_compatibility(), so the fix must map the shown label back to the internal name rather than simply swapping the string everywhere.