Optimize the device list and add user login

This commit is contained in:
QIDI TECH
2024-08-31 09:35:24 +08:00
parent a6ed4e65cb
commit 5ed1560c59
16 changed files with 670 additions and 248 deletions

View File

@@ -2047,4 +2047,17 @@ void copy_bed_model_and_texture_if_needed(DynamicPrintConfig& config)
do_copy(config.option<ConfigOptionString>("bed_custom_model"), "model");
}
// y3
std::set<std::string> PresetBundle::get_vendors()
{
std::set<std::string> qidiVendors;
for (auto vendor_profile : vendors) {
for (auto vendor_model : vendor_profile.second.models) {
std::string vendor_name = vendor_model.name;
qidiVendors.emplace(vendor_name);
}
}
return qidiVendors;
}
} // namespace Slic3r

View File

@@ -190,6 +190,9 @@ public:
return { Preset::TYPE_PRINTER, Preset::TYPE_SLA_PRINT, Preset::TYPE_SLA_MATERIAL };
}
//y3
std::set<std::string> get_vendors();
private:
std::pair<PresetsConfigSubstitutions, std::string> load_system_presets(ForwardCompatibilitySubstitutionRule compatibility_rule);
// Merge one vendor's presets with the other vendor's presets, report duplicates.