mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-29 08:32:00 -05:00
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:
1 parent
3322f6101c
commit
3a0517831f
15 files changed
+411
-66
No files matched your search
@@ -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 {};
|
||||
|
||||
Reference in new issue
Block a user