FIX:calibration&fixed sidetool not selectable

Change-Id: I51099e3bc89bb54ccac4ba9d2465bfabe77ae473
This commit is contained in:
tao wang 2023-07-04 09:41:36 +08:00 committed by Lane.Wei
parent 8b42a8b7e9
commit a21df32225

View file

@ -112,7 +112,7 @@ AddMachinePanel::~AddMachinePanel() {
init_timer();
m_side_tools->Connect(wxEVT_LEFT_DOWN, wxMouseEventHandler(MonitorPanel::on_printer_clicked), NULL, this);
m_side_tools->get_panel()->Connect(wxEVT_LEFT_DOWN, wxMouseEventHandler(MonitorPanel::on_printer_clicked), NULL, this);
Bind(wxEVT_TIMER, &MonitorPanel::on_timer, this);
Bind(wxEVT_SIZE, &MonitorPanel::on_size, this);
@ -125,7 +125,7 @@ AddMachinePanel::~AddMachinePanel() {
MonitorPanel::~MonitorPanel()
{
m_side_tools->Disconnect(wxEVT_LEFT_DOWN, wxMouseEventHandler(MonitorPanel::on_printer_clicked), NULL, this);
m_side_tools->get_panel()->Disconnect(wxEVT_LEFT_DOWN, wxMouseEventHandler(MonitorPanel::on_printer_clicked), NULL, this);
if (m_refresh_timer)
m_refresh_timer->Stop();