mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
FIX: the AMS shown fault because of dirty data
jira: [none] Change-Id: I82c627e351c996b2c3c352220a2b0a837c205c39 (cherry picked from commit 888687de8283c167a19a9bfaee1654e455148264)
This commit is contained in:
@@ -800,6 +800,13 @@ void AMSControl::Reset()
|
|||||||
m_current_show_ams = "";
|
m_current_show_ams = "";
|
||||||
m_current_ams = "";
|
m_current_ams = "";
|
||||||
m_current_select = "";*/
|
m_current_select = "";*/
|
||||||
|
|
||||||
|
m_ams_info.clear();
|
||||||
|
m_ext_info.clear();
|
||||||
|
m_dev_id.clear();
|
||||||
|
ClearAms();
|
||||||
|
|
||||||
|
Layout();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AMSControl::show_noams_mode()
|
void AMSControl::show_noams_mode()
|
||||||
@@ -888,7 +895,7 @@ void AMSControl::UpdateAms(std::vector<AMSinfo> ams_info, std::vector<AMSinfo>ex
|
|||||||
bool fresh = false;
|
bool fresh = false;
|
||||||
|
|
||||||
// basic check
|
// basic check
|
||||||
if (m_ams_info.size() == ams_info.size() && m_extder_data.total_extder_count == data.total_extder_count && m_dev_id == dev_id){
|
if (m_ams_info.size() == ams_info.size() && m_extder_data.total_extder_count == data.total_extder_count && m_dev_id == dev_id && m_ext_info.size() == ext_info.size()) {
|
||||||
for (int i = 0; i < m_ams_info.size(); i++){
|
for (int i = 0; i < m_ams_info.size(); i++){
|
||||||
if (m_ams_info[i].ams_id != ams_info[i].ams_id){
|
if (m_ams_info[i].ams_id != ams_info[i].ams_id){
|
||||||
fresh = true;
|
fresh = true;
|
||||||
@@ -997,6 +1004,7 @@ void AMSControl::UpdateAms(std::vector<AMSinfo> ams_info, std::vector<AMSinfo>ex
|
|||||||
}
|
}
|
||||||
SetSize(wxSize(FromDIP(578), -1));
|
SetSize(wxSize(FromDIP(578), -1));
|
||||||
SetMinSize(wxSize(FromDIP(578), -1));
|
SetMinSize(wxSize(FromDIP(578), -1));
|
||||||
|
Layout();
|
||||||
}
|
}
|
||||||
//Thaw();
|
//Thaw();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user