mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-02 00:48:43 +03:00
Optimize the device list and add user login
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user