mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
misc updates
This commit is contained in:
@@ -15,8 +15,6 @@ wxDEFINE_EVENT(EVT_DEVICE_CHANGED, wxCommandEvent);
|
||||
wxDEFINE_EVENT(EVT_CALIBRATION_JOB_FINISHED, wxCommandEvent);
|
||||
|
||||
static const wxString NA_STR = _L("N/A");
|
||||
static const float MIN_PA_K_VALUE = 0.0;
|
||||
static const float MAX_PA_K_VALUE = 0.3;
|
||||
static const float MIN_PA_K_VALUE_STEP = 0.001;
|
||||
static const int MAX_PA_HISTORY_RESULTS_NUMS = 16;
|
||||
|
||||
@@ -310,6 +308,9 @@ void CalibrationWizard::recover_preset_info(MachineObject *obj)
|
||||
|
||||
void CalibrationWizard::back_preset_info(MachineObject *obj, bool cali_finish, bool back_cali_flag)
|
||||
{
|
||||
if (!obj)
|
||||
return;
|
||||
|
||||
PrinterCaliInfo printer_cali_info;
|
||||
printer_cali_info.dev_id = obj->dev_id;
|
||||
printer_cali_info.cali_finished = cali_finish;
|
||||
@@ -468,11 +469,11 @@ void PressureAdvanceWizard::on_cali_action(wxCommandEvent& evt)
|
||||
|
||||
void PressureAdvanceWizard::update(MachineObject* obj)
|
||||
{
|
||||
CalibrationWizard::update(obj);
|
||||
|
||||
if (!obj)
|
||||
return;
|
||||
|
||||
CalibrationWizard::update(obj);
|
||||
|
||||
if (!m_show_result_dialog) {
|
||||
if (obj->cali_version != -1 && obj->cali_version != cali_version) {
|
||||
cali_version = obj->cali_version;
|
||||
|
||||
Reference in New Issue
Block a user