add profile validate tool (#4249)

* add profile validate tool

* handle invalid path
This commit is contained in:
SoftFever 2024-02-28 23:18:04 +08:00 committed by GitHub
parent 93714f834d
commit 0f6cbace22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 106 additions and 4 deletions

View file

@ -121,6 +121,9 @@ public:
void update_selections(AppConfig &config);
void set_calibrate_printer(std::string name);
void set_is_validation_mode(bool mode) { validation_mode = mode; }
void set_vendor_to_validate(std::string vendor) { vendor_to_validate = vendor; }
PresetCollection prints;
PresetCollection sla_prints;
PresetCollection filaments;
@ -284,6 +287,9 @@ private:
DynamicPrintConfig full_fff_config() const;
DynamicPrintConfig full_sla_config() const;
bool validation_mode = false;
std::string vendor_to_validate = "";
};
ENABLE_ENUM_BITMASK_OPERATORS(PresetBundle::LoadConfigBundleAttribute)