mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-30 19:02:02 +08:00
Fix of not selecting presets from Connect when physical printer was selected.
Note: There might be other similar settings that needs to be done next to the unselecting of ph printer.
This commit is contained in:
parent
488254f7fb
commit
db43c069d9
@ -3650,6 +3650,13 @@ bool GUI_App::select_printer_from_connect(const Preset* preset)
|
||||
|
||||
bool is_installed{ false };
|
||||
|
||||
// When physical printer is selected, it somehow remains selected in printer tab
|
||||
// TabPresetComboBox::update() looks at physical_printers and if some has selected = true, it overrides the selection.
|
||||
// This might be, because OnSelect event callback is not triggered
|
||||
if(preset_bundle->physical_printers.get_selected_printer_config()) {
|
||||
preset_bundle->physical_printers.unselect_printer();
|
||||
}
|
||||
|
||||
if (!preset->is_visible) {
|
||||
size_t preset_id = preset_bundle->printers.get_preset_idx_by_name(preset->name);
|
||||
assert(preset_id != size_t(-1));
|
||||
|
Loading…
x
Reference in New Issue
Block a user