mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
FIX: ams control display bug
jira: none Change-Id: I72c5977ff4246c19f4bf5ce7e20f797c0efe9e9a (cherry picked from commit 7f43d427c30779f8e992a9893eed1ae57ae12446)
This commit is contained in:
@@ -1719,6 +1719,14 @@ void AMSPreview::Update(AMSinfo amsinfo)
|
||||
{
|
||||
m_amsinfo = amsinfo;
|
||||
m_ams_item_type = amsinfo.ams_type;
|
||||
|
||||
if (m_ams_item_type == AMSModel::GENERIC_AMS || m_ams_item_type == AMSModel::AMS_LITE || m_ams_item_type == AMSModel::N3F_AMS) {
|
||||
SetMinSize(AMS_ITEM_SIZE);
|
||||
SetMaxSize(AMS_ITEM_SIZE);
|
||||
} else {
|
||||
SetMinSize(AMS_ITEM_SIZE);
|
||||
SetMaxSize(AMS_ITEM_SIZE);
|
||||
}
|
||||
}
|
||||
|
||||
void AMSPreview::create(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size)
|
||||
|
||||
Reference in New Issue
Block a user