Fix for #13058 - PrusaSlicer 2.8.0 configuration wizard auto adds SLA printer

Don't select any printer by default, when single repo is selected.
This commit is contained in:
YuSanka 2024-07-17 12:49:32 +02:00 committed by Lukas Matena
parent 92d08da96d
commit 5e3240fd76

View File

@ -2877,13 +2877,9 @@ void ConfigWizard::priv::create_vendor_printers_page(const std::string& repo_id,
// single vendor repository
if (pageFFF) {
pages_fff.emplace_back(pageFFF);
if (!pageFFF->any_selected())
pageFFF->printer_pickers[0]->select_one(0, true);// select first printer for them
}
if (pageSLA) {
pages_msla.emplace_back(pageSLA);
if (!pageSLA->any_selected())
pageSLA->printer_pickers[0]->select_one(0, true);// select first printer for them
}
}
if (pageFFF || pageSLA)