FIX: the default value of flow rate calibration is the last value set

Jira: 4147
Change-Id: If587d92aea872e8cfadb556b2912db402e0a6a86
(cherry picked from commit 2530a94827231181ac30fb6ade1eb99021be5f2a)
This commit is contained in:
zhimin.zeng 2023-08-30 11:06:20 +08:00 committed by Lane.Wei
parent c00caad244
commit e7fcd330ba
2 changed files with 36 additions and 22 deletions

View file

@ -223,7 +223,7 @@ public:
void create_page(wxWindow* parent);
void set_save_img();
void set_default_name(const wxString& name);
void set_default_options(const wxString &name);
bool is_skip_fine_calibration();
@ -239,6 +239,9 @@ protected:
ComboBox* m_optimal_block_coarse;
TextInput* m_save_name_input;
Label* m_coarse_calc_result_text;
CheckBox* m_checkBox_skip_calibration;
bool m_skip_fine_calibration = false;
float m_curr_flow_ratio;
float m_coarse_flow_ratio;
@ -252,7 +255,7 @@ public:
void create_page(wxWindow* parent);
void set_save_img();
void set_default_name(const wxString& name);
void set_default_options(const wxString &name);
void set_curr_flow_ratio(float value);
@ -266,6 +269,8 @@ protected:
ComboBox* m_optimal_block_fine;
TextInput* m_save_name_input;
Label* m_fine_calc_result_text;
float m_curr_flow_ratio;
float m_fine_flow_ratio;
};