mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 11:02:08 +00:00
FIX: refresh the preview when changed
jira: [STUDIO-9576] Change-Id: Ic742fa3dd5011dbafc0353b20039b2f33df8d300 (cherry picked from commit d1e50a4e7020b46374d24a16e4520c97b28d51b6)
This commit is contained in:
@@ -2389,6 +2389,11 @@ void AMSPreview::Close()
|
||||
|
||||
void AMSPreview::Update(AMSinfo amsinfo)
|
||||
{
|
||||
if (m_amsinfo == amsinfo)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
m_amsinfo = amsinfo;
|
||||
m_ams_item_type = amsinfo.ams_type;
|
||||
|
||||
@@ -2399,6 +2404,8 @@ void AMSPreview::Update(AMSinfo amsinfo)
|
||||
SetMinSize(AMS_PREV_SINGLE_SIZE);
|
||||
SetMaxSize(AMS_PREV_SINGLE_SIZE);
|
||||
}
|
||||
|
||||
Refresh();
|
||||
}
|
||||
|
||||
void AMSPreview::create(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size)
|
||||
|
||||
Reference in New Issue
Block a user