fix: warn on preset save when plugin not found (#16929)

* fix: warn on preset save when plugin not found

* refactor: build the unsaved-changes save config in one place

* Fixes clang-tidy

---------

Co-authored-by: Lam Wei Lun <weilun.lam@gmail.com>
This commit is contained in:
Ian ChuaandLam Wei Lun authored and GitHub committed 2026-10-28 13:02:05 +08:00
1 parent 3322f6101c
commit 3a0517831f
15 files changed
+411 -66

No files matched your search

+1 -1
View File
@@ -784,7 +784,7 @@ std::string OptionsGroup::pick_plugin(const ConfigOptionDef& opt)
return {};
// Only the bare capability name is stored; the full "name;uuid;capability" reference is derived when
// the preset is serialized (see ConfigBase::save_plugin_collection). Resolve here to reject bad picks.
// the preset is serialized (see ConfigBase::collect_plugin_manifest). Resolve here to reject bad picks.
Slic3r::PluginDescriptor descriptor;
if (!manager.try_get_plugin_descriptor(selection.plugin_key, descriptor) || descriptor.name.empty())
return {};