mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
ENH: protect build ams list
jira:NONE Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: I4e8665df0bb24f056f79bd5cabab886bb5ff7921 (cherry picked from commit 6d1b8f0324fd07319aa22fcdf25856531d687621)
This commit is contained in:
@@ -395,7 +395,7 @@ bool PresetBundle::backup_user_folder() const
|
||||
std::optional<FilamentBaseInfo> PresetBundle::get_filament_by_filament_id(const std::string& filament_id) const
|
||||
{
|
||||
if (filament_id.empty())
|
||||
return {};
|
||||
return std::nullopt;
|
||||
|
||||
// basic filament info should be same in the parent preset and child preset
|
||||
// so just match the filament id is enough
|
||||
@@ -421,7 +421,7 @@ std::optional<FilamentBaseInfo> PresetBundle::get_filament_by_filament_id(const
|
||||
return info;
|
||||
}
|
||||
}
|
||||
return {};
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
//BBS: load project embedded presets
|
||||
|
||||
Reference in New Issue
Block a user