mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 15:44:12 -06:00
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:
parent
6d98c2b1ce
commit
687c91d6e9
3 changed files with 35 additions and 1 deletions
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue