FIX: pa manual save page show() not been called

Change-Id: I85120b78442cdd8a1c629df7d20ed13b996e682d
This commit is contained in:
liz.li 2023-07-04 15:39:34 +08:00 committed by Lane.Wei
parent 988e4d9f84
commit f993f5e30d
2 changed files with 8 additions and 0 deletions

View file

@ -691,6 +691,12 @@ void CalibrationPASavePage::update(MachineObject* obj)
m_manual_panel->set_machine_obj(obj); m_manual_panel->set_machine_obj(obj);
} }
bool CalibrationPASavePage::Show(bool show) {
if (curr_obj)
show_panels(m_cali_method, curr_obj->printer_type);
return wxPanel::Show(show);
}
CalibrationFlowX1SavePage::CalibrationFlowX1SavePage(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style) CalibrationFlowX1SavePage::CalibrationFlowX1SavePage(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style)
: CalibrationCommonSavePage(parent, id, pos, size, style) : CalibrationCommonSavePage(parent, id, pos, size, style)
{ {

View file

@ -173,6 +173,8 @@ public:
void update(MachineObject* obj) override; void update(MachineObject* obj) override;
virtual bool Show(bool show = true) override;
protected: protected:
CaliPageStepGuide* m_step_panel { nullptr }; CaliPageStepGuide* m_step_panel { nullptr };
CaliPASaveAutoPanel* m_auto_panel { nullptr }; CaliPASaveAutoPanel* m_auto_panel { nullptr };