mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 02:05:57 +08:00
Filter only when not loading printer presets.
This commit is contained in:
parent
5f8075585c
commit
9306c25db2
@ -57,7 +57,9 @@ void PresetChooser::load(std::array<Presets, preset_types> presets) {
|
||||
for (const auto& group : { preset_t::Printer, preset_t::Material, preset_t::Print }) {
|
||||
auto current_list = presets.at(get_preset(group));
|
||||
// Filter out profiles not compatible with this printer
|
||||
current_list = grep(presets.at(get_preset(group)), [selected_printer_name] (const Preset& x) -> bool { return x.compatible(selected_printer_name); });
|
||||
if (group != preset_t::Printer) {
|
||||
current_list = grep(presets.at(get_preset(group)), [selected_printer_name] (const Preset& x) -> bool { return x.compatible(selected_printer_name); });
|
||||
}
|
||||
|
||||
// show default names if no other presets visible.
|
||||
if (current_list.size() > 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user