mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
FIX: fix some issue in calibration
1.add part of x1c PAcalibrate save multi-filamnet-presets logic 2.fix a quit crash 3.fix keeping connecting device 4.part of UI refined Change-Id: I221984529bd09111d408b09defe5e30c9d100714
This commit is contained in:
parent
fb5a9062ff
commit
767edb03e0
9 changed files with 602 additions and 332 deletions
|
@ -50,7 +50,6 @@ void CalibrationPanel::init_timer()
|
|||
}
|
||||
|
||||
void CalibrationPanel::on_timer(wxTimerEvent& event) {
|
||||
// todo only update at CalibrationPanel
|
||||
update_all();
|
||||
}
|
||||
|
||||
|
@ -73,4 +72,23 @@ void CalibrationPanel::update_all() {
|
|||
}
|
||||
}
|
||||
|
||||
bool CalibrationPanel::Show(bool show) {
|
||||
if (show) {
|
||||
m_refresh_timer->Stop();
|
||||
m_refresh_timer->SetOwner(this);
|
||||
m_refresh_timer->Start(REFRESH_INTERVAL);
|
||||
wxPostEvent(this, wxTimerEvent());
|
||||
}
|
||||
else {
|
||||
m_refresh_timer->Stop();
|
||||
}
|
||||
return wxPanel::Show(show);
|
||||
}
|
||||
|
||||
CalibrationPanel::~CalibrationPanel() {
|
||||
if (m_refresh_timer)
|
||||
m_refresh_timer->Stop();
|
||||
delete m_refresh_timer;
|
||||
}
|
||||
|
||||
}}
|
Loading…
Add table
Add a link
Reference in a new issue