diff --git a/src/slic3r/GUI/Monitor.hpp b/src/slic3r/GUI/Monitor.hpp index a554fbc6c..6522b74be 100644 --- a/src/slic3r/GUI/Monitor.hpp +++ b/src/slic3r/GUI/Monitor.hpp @@ -112,10 +112,20 @@ private: public: MonitorPanel(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL); ~MonitorPanel(); + + enum PrinterTab { + PT_STATUS = 0, + PT_MEDIA = 1, + PT_UPDATE = 2, + PT_HMS = 3, + PT_DEBUG = 4, + PT_MAX_NUM = 5 + }; void init_bitmap(); void init_timer(); void init_tabpanel(); + Tabbook* get_tabpanel() { return m_tabpanel; }; void set_default(); wxWindow* create_side_tools(); diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 87e8f6336..d5cefc893 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -8954,6 +8954,10 @@ void Plater::print_job_finished(wxCommandEvent &evt) p->hide_select_machine_dlg(); p->main_frame->request_select_tab(MainFrame::TabPosition::tpMonitor); + //jump to monitor and select device status panel + MonitorPanel* curr_monitor = p->main_frame->m_monitor; + if(curr_monitor) + curr_monitor->get_tabpanel()->ChangeSelection(MonitorPanel::PrinterTab::PT_STATUS); } // Called when the Eject button is pressed.