mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-03 06:30:37 +08:00
Follow up 2c0f826d - Call update of "Physical printer" tab visibility on Edit of physical printer
or change of physical printers with same printer model
This commit is contained in:
parent
5d293dc9fc
commit
403a3ec095
@ -374,8 +374,10 @@ void PresetComboBox::edit_physical_printer()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
PhysicalPrinterDialog dlg(this->GetParent(),this->GetString(this->GetSelection()));
|
PhysicalPrinterDialog dlg(this->GetParent(),this->GetString(this->GetSelection()));
|
||||||
if (dlg.ShowModal() == wxID_OK)
|
if (dlg.ShowModal() == wxID_OK) {
|
||||||
update();
|
update();
|
||||||
|
wxGetApp().show_printer_webview_tab();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PresetComboBox::add_physical_printer()
|
void PresetComboBox::add_physical_printer()
|
||||||
@ -610,6 +612,9 @@ bool PresetComboBox::selection_is_changed_according_to_physical_printers()
|
|||||||
else if (dynamic_cast<TabPresetComboBox*>(this)!=nullptr)
|
else if (dynamic_cast<TabPresetComboBox*>(this)!=nullptr)
|
||||||
wxGetApp().sidebar().update_presets(m_type);
|
wxGetApp().sidebar().update_presets(m_type);
|
||||||
|
|
||||||
|
// Check and show "Physical printer" page if needed
|
||||||
|
wxGetApp().show_printer_webview_tab();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user