From 128068cb65c0333ac8c0605ef497844f2b84a02f Mon Sep 17 00:00:00 2001 From: Ian Chua Date: Wed, 1 Jul 2026 11:13:27 +0800 Subject: [PATCH] fix: fix type name from preset to process in the preset bundle dialog (#14481) # Description The type field for process presets is wrong. It should be process instead of preset image [How to Download Pull Requests Artifacts for Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts) --- resources/web/dialog/PresetBundleDialog/index.js | 10 +++++----- src/slic3r/GUI/PresetBundleDialog.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/web/dialog/PresetBundleDialog/index.js b/resources/web/dialog/PresetBundleDialog/index.js index b370fe8018..4ff3167d07 100644 --- a/resources/web/dialog/PresetBundleDialog/index.js +++ b/resources/web/dialog/PresetBundleDialog/index.js @@ -2,7 +2,7 @@ const bundlesById = new Map(); // bundleId -> bundle object const printersByBundle = new Map(); // bundleId -> Map(index -> printerName) const filamentsByBundle = new Map(); // bundleId -> Map(index -> filamentName) -const presetsByBundle = new Map(); // bundleId -> Map(index -> presetName) +const processesByBundle = new Map(); // bundleId -> Map(index -> presetName) const UPDATE_TOOLTIP = "Update available"; const UNAUTHORIZED_TOOLTIP = "Unauthorized bundle"; @@ -193,7 +193,7 @@ function unpackPayload(payload) { bundlesById.clear(); printersByBundle.clear(); filamentsByBundle.clear(); - presetsByBundle.clear(); + processesByBundle.clear(); const list = payload?.data || []; for (const bundle of list) { @@ -212,7 +212,7 @@ function unpackPayload(payload) { printersByBundle.set(id, new Map((bundle.printers || []).map((name, i) => [i, name]))); filamentsByBundle.set(id, new Map((bundle.filaments || []).map((name, i) => [i, name]))); - presetsByBundle.set(id, new Map((bundle.presets || []).map((name, i) => [i, name]))); + processesByBundle.set(id, new Map((bundle.processes || []).map((name, i) => [i, name]))); } } @@ -277,14 +277,14 @@ function renderBottomForBundle(bundleId) { const key = String(bundleId || ""); const printers = printersByBundle.get(key) || new Map(); const filaments = filamentsByBundle.get(key) || new Map(); - const presets = presetsByBundle.get(key) || new Map(); + const processes = processesByBundle.get(key) || new Map(); // Convert to a flat list of rows { typeLabel, name } const rows = []; for (const [, name] of printers) rows.push({ type: "Printer", name }); for (const [, name] of filaments) rows.push({ type: "Filament", name }); - for (const [, name] of presets) rows.push({ type: "Preset", name }); + for (const [, name] of processes) rows.push({ type: "Process", name }); bottomList.innerHTML = rows.map((r, idx) => `
diff --git a/src/slic3r/GUI/PresetBundleDialog.cpp b/src/slic3r/GUI/PresetBundleDialog.cpp index c94695c175..ac1b33dd1e 100644 --- a/src/slic3r/GUI/PresetBundleDialog.cpp +++ b/src/slic3r/GUI/PresetBundleDialog.cpp @@ -387,7 +387,7 @@ void PresetBundleDialog::ListBundles() temp["printers"] = strip_prefix(metadata.printer_presets); temp["filaments"] = strip_prefix(metadata.filament_presets); - temp["presets"] = strip_prefix(metadata.print_presets); + temp["processes"] = strip_prefix(metadata.print_presets); temp["update_available"] = metadata.update_available; temp["unauthorized"] = metadata.unauthorized;