FIX: fix virtual tray on select event

Change-Id: I37b07bf13058b94f21235cc1009455cc7661a77c
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2023-07-04 15:25:22 +08:00 committed by Lane.Wei
parent b461d8f9d5
commit 361b26faf6

View file

@ -542,6 +542,12 @@ void CalibrationPresetPage::create_ext_spool_panel(wxWindow* parent)
panel_sizer->Add(m_virtual_tray_comboBox, 0, wxALIGN_CENTER | wxRIGHT, FromDIP(8));
parent->SetSizer(panel_sizer);
panel_sizer->Fit(parent);
radio_btn->Bind(wxEVT_RADIOBUTTON, [this](wxCommandEvent& evt) {
wxCommandEvent event(EVT_CALI_TRAY_CHANGED);
event.SetEventObject(this);
wxPostEvent(this, event);
});
}
void CalibrationPresetPage::create_sending_panel(wxWindow* parent)
@ -912,6 +918,7 @@ void CalibrationPresetPage::check_filament_compatible()
m_warning_panel->set_warning("");
m_warning_panel->Hide();
}
Layout();
}