mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 03:07:55 -06:00
misc updates
This commit is contained in:
parent
1f97147023
commit
e79843872b
10 changed files with 40 additions and 21 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue