FIX: refresh the preview when changed

jira: [STUDIO-9576]
Change-Id: Ic742fa3dd5011dbafc0353b20039b2f33df8d300
(cherry picked from commit d1e50a4e7020b46374d24a16e4520c97b28d51b6)
This commit is contained in:
xin.zhang
2025-01-12 19:49:38 +08:00
committed by Noisyfox
parent 0d528d2f17
commit b7a8c28b1c
2 changed files with 48 additions and 0 deletions

View File

@@ -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)