diff --git a/src/slic3r/GUI/Monitor.cpp b/src/slic3r/GUI/Monitor.cpp index 84ff6fd17..83d77b166 100644 --- a/src/slic3r/GUI/Monitor.cpp +++ b/src/slic3r/GUI/Monitor.cpp @@ -448,7 +448,6 @@ bool MonitorPanel::Show(bool show) #ifdef __APPLE__ wxGetApp().mainframe->SetMinSize(wxGetApp().plater()->GetMinSize()); #endif - NetworkAgent* m_agent = wxGetApp().getAgent(); DeviceManager* dev = Slic3r::GUI::wxGetApp().getDeviceManager(); if (show) { @@ -475,6 +474,13 @@ bool MonitorPanel::Show(bool show) stop_update(); m_refresh_timer->Stop(); } + + if (obj && !obj->dev_id.empty()) { + select_machine(obj->dev_id); + } else { + select_machine(""); + } + return wxPanel::Show(show); } diff --git a/src/slic3r/GUI/StatusPanel.cpp b/src/slic3r/GUI/StatusPanel.cpp index 6f046d1a8..1e45e5c6a 100644 --- a/src/slic3r/GUI/StatusPanel.cpp +++ b/src/slic3r/GUI/StatusPanel.cpp @@ -1585,7 +1585,10 @@ void StatusBasePanel::show_ams_group(bool show) if (m_show_ams_group != show) { Fit(); } m_show_ams_group = show; m_show_ams_group_reset = false; + m_ams_control->Layout(); + m_ams_control->Fit(); Layout(); + Fit(); } }