mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 14:13:57 -06:00
FIX: save page crash
1. auto pa calibrate : while save, vector overflow crash 2. adjust save name length limit Change-Id: Iac901c9fcf90d2ac65211a913b4ab3425591c03a
This commit is contained in:
parent
0edb4476cf
commit
bcae2a7298
2 changed files with 38 additions and 31 deletions
|
@ -92,7 +92,7 @@ public:
|
|||
void set_machine_obj(MachineObject* obj) { m_obj = obj; }
|
||||
|
||||
void sync_cali_result(const std::vector<PACalibResult>& cali_result, const std::vector<PACalibResult>& history_result);
|
||||
void save_to_result_from_widgets(wxWindow* window, bool* out_is_valid);
|
||||
void save_to_result_from_widgets(wxWindow* window, bool* out_is_valid, wxString* out_msg);
|
||||
bool get_result(std::vector<PACalibResult>& out_result);
|
||||
bool is_all_failed() { return m_is_all_failed; }
|
||||
|
||||
|
@ -101,7 +101,7 @@ protected:
|
|||
wxPanel* m_complete_text_panel;
|
||||
wxPanel* m_part_failed_panel;
|
||||
wxPanel* m_grid_panel{ nullptr };
|
||||
std::vector<PACalibResult> m_calib_results;
|
||||
std::map<int, PACalibResult> m_calib_results;// map<tray_id, PACalibResult>
|
||||
std::vector<PACalibResult> m_history_results;
|
||||
bool m_is_all_failed{ true };
|
||||
MachineObject* m_obj;
|
||||
|
@ -198,7 +198,7 @@ public:
|
|||
|
||||
// sync widget value from cali flow rate result
|
||||
void sync_cali_result(const std::vector<FlowRatioCalibResult>& cali_result);
|
||||
void save_to_result_from_widgets(wxWindow* window, bool* out_is_valid);
|
||||
void save_to_result_from_widgets(wxWindow* window, bool* out_is_valid, wxString* out_msg);
|
||||
bool get_result(std::vector<std::pair<wxString, float>>& out_results);
|
||||
bool is_all_failed() { return m_is_all_failed; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue