ENH: [STUDIO-4774]Move Template to a separate folder

Jira: STUDIO-4774

Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
Change-Id: I4669aa51a3b4d6bd92805935602bfb3fef374cfd
This commit is contained in:
maosheng.wei 2023-10-13 10:04:32 +08:00 committed by Lane.Wei
parent 17e9bb48d8
commit 77e1b33d9a
18 changed files with 3 additions and 2 deletions

View File

@ -21,6 +21,7 @@
#define PRESET_SLA_PRINT_NAME "sla_print"
#define PRESET_SLA_MATERIALS_NAME "sla_materials"
#define PRESET_PROFILES_DIR "profiles"
#define PRESET_PROFILES_TEMOLATE_DIR "profiles_template"
#define PRESET_TEMPLATE_DIR "Template"
//BBS: iot preset type strings

View File

@ -1634,8 +1634,8 @@ bool CreatePrinterPresetDialog::load_system_and_user_presets_with_curr_model(Pre
} else {
selected_vendor_id = PRESET_TEMPLATE_DIR;
preset_path.clear();
if (boost::filesystem::exists(boost::filesystem::path(Slic3r::resources_dir()) / PRESET_PROFILES_DIR / selected_vendor_id)) {
preset_path = (boost::filesystem::path(Slic3r::resources_dir()) / PRESET_PROFILES_DIR).string();
if (boost::filesystem::exists(boost::filesystem::path(Slic3r::resources_dir()) / PRESET_PROFILES_TEMOLATE_DIR / selected_vendor_id)) {
preset_path = (boost::filesystem::path(Slic3r::resources_dir()) / PRESET_PROFILES_TEMOLATE_DIR).string();
}
if (preset_path.empty()) {
BOOST_LOG_TRIVIAL(info) << "Preset path is not find";