Parsing of obsolete presets from Config Bundle to remove them

from user's profile when upgrading to a new configuration structure.
This commit is contained in:
bubnikv 2018-05-16 16:34:07 +02:00
parent 6d98c2b1ce
commit 687c91d6e9
3 changed files with 35 additions and 1 deletions

View file

@ -54,6 +54,13 @@ public:
// and the system profiles will point to the VendorProfile instances owned by PresetBundle::vendors.
std::set<VendorProfile> vendors;
struct ObsoletePresets {
std::vector<std::string> prints;
std::vector<std::string> filaments;
std::vector<std::string> printers;
};
ObsoletePresets obsolete_presets;
bool has_defauls_only() const
{ return prints.size() <= 1 && filaments.size() <= 1 && printers.size() <= 1; }