Fixed default selection for installed vendors

(SPE-2325)
This commit is contained in:
YuSanka 2024-05-29 14:27:50 +02:00 committed by David Kocik
parent 690126f674
commit de584c3055

View File

@ -3651,6 +3651,9 @@ void ConfigWizard::priv::load_pages_from_archive()
{ {
if (PagePrinters* pageFFF = printers.first) { if (PagePrinters* pageFFF = printers.first) {
pageFFF->incr_indent(); pageFFF->incr_indent();
if (!pageFFF->any_selected())
pageFFF->printer_pickers[0]->select_one(0, true);// select first printer for them
pages_fff.push_back(pageFFF); pages_fff.push_back(pageFFF);
if (!is_primary_printer_page_set) { if (!is_primary_printer_page_set) {
pageFFF->is_primary_printer_page = true; pageFFF->is_primary_printer_page = true;
@ -3660,6 +3663,9 @@ void ConfigWizard::priv::load_pages_from_archive()
if (PagePrinters* pageSLA = printers.second) { if (PagePrinters* pageSLA = printers.second) {
pageSLA->incr_indent(); pageSLA->incr_indent();
if (!pageSLA->any_selected())
pageSLA->printer_pickers[0]->select_one(0, true);// select first printer for them
pages_msla.push_back(pageSLA); pages_msla.push_back(pageSLA);
if (!is_primary_printer_page_set) { if (!is_primary_printer_page_set) {
pageSLA->is_primary_printer_page = true; pageSLA->is_primary_printer_page = true;