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:
parent
17e9bb48d8
commit
77e1b33d9a
|
@ -21,6 +21,7 @@
|
||||||
#define PRESET_SLA_PRINT_NAME "sla_print"
|
#define PRESET_SLA_PRINT_NAME "sla_print"
|
||||||
#define PRESET_SLA_MATERIALS_NAME "sla_materials"
|
#define PRESET_SLA_MATERIALS_NAME "sla_materials"
|
||||||
#define PRESET_PROFILES_DIR "profiles"
|
#define PRESET_PROFILES_DIR "profiles"
|
||||||
|
#define PRESET_PROFILES_TEMOLATE_DIR "profiles_template"
|
||||||
#define PRESET_TEMPLATE_DIR "Template"
|
#define PRESET_TEMPLATE_DIR "Template"
|
||||||
|
|
||||||
//BBS: iot preset type strings
|
//BBS: iot preset type strings
|
||||||
|
|
|
@ -1634,8 +1634,8 @@ bool CreatePrinterPresetDialog::load_system_and_user_presets_with_curr_model(Pre
|
||||||
} else {
|
} else {
|
||||||
selected_vendor_id = PRESET_TEMPLATE_DIR;
|
selected_vendor_id = PRESET_TEMPLATE_DIR;
|
||||||
preset_path.clear();
|
preset_path.clear();
|
||||||
if (boost::filesystem::exists(boost::filesystem::path(Slic3r::resources_dir()) / PRESET_PROFILES_DIR / selected_vendor_id)) {
|
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_DIR).string();
|
preset_path = (boost::filesystem::path(Slic3r::resources_dir()) / PRESET_PROFILES_TEMOLATE_DIR).string();
|
||||||
}
|
}
|
||||||
if (preset_path.empty()) {
|
if (preset_path.empty()) {
|
||||||
BOOST_LOG_TRIVIAL(info) << "Preset path is not find";
|
BOOST_LOG_TRIVIAL(info) << "Preset path is not find";
|
||||||
|
|
Loading…
Reference in New Issue