mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: 1. the status of ams item is not correct
2. fix the status cali button of stat page is sometimes incorrect 3. when the nozzle volume type is not the same as printer, prompt user to sync 4. fix the incorrect nozzle volume type of cali preset page jira: STUDIO-8856 STUDIO-8832 Change-Id: I83569f41533681b3d2f68d7b86be68955bd957f1 (cherry picked from commit 9dffa8d00281e06b24c29d818064e1c55418333d)
This commit is contained in:
@@ -18,7 +18,7 @@ ExtrusionCalibration::ExtrusionCalibration(wxWindow *parent, wxWindowID id)
|
||||
wxGetApp().UpdateDlgDarkUI(this);
|
||||
}
|
||||
|
||||
void ExtrusionCalibration::init_bitmaps()
|
||||
void ExtrusionCalibration::init_bitmaps()
|
||||
{
|
||||
auto lan = wxGetApp().app_config->get_language_code();
|
||||
if (lan == "zh-cn") {
|
||||
@@ -211,7 +211,7 @@ void ExtrusionCalibration::create()
|
||||
cali_sizer->Add(m_button_cali, 0, wxRIGHT | wxALIGN_CENTRE_VERTICAL, FromDIP(10));
|
||||
cali_sizer->Add(m_cali_cancel, 0, wxRIGHT | wxALIGN_CENTRE_VERTICAL, FromDIP(10));
|
||||
cali_sizer->Add(m_button_next_step, 0, wxRIGHT | wxALIGN_CENTRE_VERTICAL, FromDIP(10));
|
||||
|
||||
|
||||
step_1_sizer->Add(cali_sizer, 0, wxEXPAND);
|
||||
step_1_sizer->Add(0, EXTRUSION_CALIBRATION_WIDGET_GAP, 0, 0);
|
||||
|
||||
@@ -377,7 +377,7 @@ void ExtrusionCalibration::open_bitmap(wxMouseEvent& event) {
|
||||
return;
|
||||
}
|
||||
|
||||
void ExtrusionCalibration::input_value_finish()
|
||||
void ExtrusionCalibration::input_value_finish()
|
||||
{
|
||||
;
|
||||
}
|
||||
@@ -414,7 +414,7 @@ void ExtrusionCalibration::show_info(bool show, bool is_error, wxString text)
|
||||
void ExtrusionCalibration::update()
|
||||
{
|
||||
if (obj) {
|
||||
if (obj->is_in_extrusion_cali()) {
|
||||
if (obj->is_in_extrusion_cali()) {
|
||||
show_info(true, false, wxString::Format(_L("Calibrating... %d%%"), obj->mc_print_percent));
|
||||
m_cali_cancel->Show();
|
||||
m_cali_cancel->Enable();
|
||||
@@ -510,7 +510,7 @@ bool ExtrusionCalibration::check_k_validation(wxString k_text)
|
||||
;
|
||||
}
|
||||
|
||||
if (k < MIN_PA_K_VALUE || k > MAX_PA_K_VALUE)
|
||||
if (k <= MIN_PA_K_VALUE || k >= MAX_PA_K_VALUE)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
@@ -534,7 +534,7 @@ bool ExtrusionCalibration::check_k_n_validation(wxString k_text, wxString n_text
|
||||
catch (...) {
|
||||
;
|
||||
}
|
||||
if (k < MIN_PA_K_VALUE || k > MAX_PA_K_VALUE)
|
||||
if (k <= MIN_PA_K_VALUE || k >= MAX_PA_K_VALUE)
|
||||
return false;
|
||||
if (n < 0.6 || n > 2.0)
|
||||
return false;
|
||||
@@ -613,13 +613,13 @@ void ExtrusionCalibration::on_click_next(wxCommandEvent& event)
|
||||
set_step(2);
|
||||
}
|
||||
|
||||
bool ExtrusionCalibration::Show(bool show)
|
||||
{
|
||||
bool ExtrusionCalibration::Show(bool show)
|
||||
{
|
||||
if (show) {
|
||||
m_k_val->GetTextCtrl()->SetSize(wxSize(-1, FromDIP(20)));
|
||||
m_n_val->GetTextCtrl()->SetSize(wxSize(-1, FromDIP(20)));
|
||||
}
|
||||
return DPIDialog::Show(show);
|
||||
return DPIDialog::Show(show);
|
||||
}
|
||||
|
||||
void ExtrusionCalibration::update_combobox_filaments()
|
||||
@@ -809,7 +809,7 @@ void ExtrusionCalibration::update_filament_info()
|
||||
bed_temp_int = get_bed_temp(&filament_it->config);
|
||||
wxString bed_temp_text = wxString::Format("%d", bed_temp_int);
|
||||
m_bed_temp->GetTextCtrl()->SetValue(bed_temp_text);
|
||||
|
||||
|
||||
// update max flow speed
|
||||
ConfigOption* opt_flow_speed = filament_it->config.option("filament_max_volumetric_speed");
|
||||
if (opt_flow_speed) {
|
||||
|
||||
Reference in New Issue
Block a user