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:
xun.zhang
2025-02-15 15:39:45 +08:00
committed by Noisyfox
parent 4365f158d0
commit 55b928694c
3 changed files with 11 additions and 8 deletions

View File

@@ -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