From 3ebaf8d73dc7da4482fae8cc1774be460e46d6a2 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 7 Feb 2023 11:00:21 +0100 Subject: [PATCH] PhysicalPrinterDialog: MSW specific: Add missed Refresh on update --- src/slic3r/GUI/PhysicalPrinterDialog.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/slic3r/GUI/PhysicalPrinterDialog.cpp b/src/slic3r/GUI/PhysicalPrinterDialog.cpp index b6cd81997..e3aff63ca 100644 --- a/src/slic3r/GUI/PhysicalPrinterDialog.cpp +++ b/src/slic3r/GUI/PhysicalPrinterDialog.cpp @@ -241,9 +241,7 @@ PhysicalPrinterDialog::PhysicalPrinterDialog(wxWindow* parent, wxString printer_ m_printer_name->SelectAll(); } - const wxSize& bestsize = this->GetBestSize(); - const wxSize& size = wxSize(bestsize.x, 1.1f * bestsize.y); - this->SetSize(size); + this->Fit(); this->Layout(); this->CenterOnScreen(); @@ -532,10 +530,11 @@ void PhysicalPrinterDialog::update(bool printer_change) update_printhost_buttons(); - const wxSize& bestsize= this->GetBestSize(); - const wxSize& size = wxSize( bestsize.x, 1.1f * bestsize.y); - this->SetSize(size); + this->Fit(); this->Layout(); +#ifdef __WXMSW__ + this->Refresh(); +#endif } void PhysicalPrinterDialog::update_host_type(bool printer_change)