FIX: get_similar_printer_preset only visit system preset
Change-Id: Ib219e76cba37ace7b81f69e63f4edd1edb25ddc4 Jira: STUDIO-10338
This commit is contained in:
parent
5ad7576ce7
commit
0b4795fd10
|
@ -2255,7 +2255,10 @@ Preset *PresetBundle::get_similar_printer_preset(std::string printer_model, std:
|
|||
auto printer_variant_old = printers.get_selected_preset().config.opt_string("printer_variant");
|
||||
std::set<std::string> printer_names;
|
||||
for (auto &preset : printers.m_presets) {
|
||||
if (preset.config.opt_string("printer_model") == printer_model) printer_names.insert(preset.name);
|
||||
if (printer_variant.empty() && !preset.is_system)
|
||||
continue;
|
||||
if (preset.config.opt_string("printer_model") == printer_model)
|
||||
printer_names.insert(preset.name);
|
||||
}
|
||||
if (printer_names.empty())
|
||||
return nullptr;
|
||||
|
|
Loading…
Reference in New Issue