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:
YuSanka 2024-04-23 15:42:35 +02:00 committed by David Kocik
parent 5d293dc9fc
commit 403a3ec095

View File

@ -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;
} }