FIX: ams count dialog not default button

Change-Id: I5eb563d734953d185425f745acac3cfb3eadb4a4
Jira: STUDIO-9936
(cherry picked from commit a5acf20506aeb4c2720dbe367ae5651dda88df7f)
This commit is contained in:
chunmao.guo
2025-01-17 16:11:04 +08:00
committed by Noisyfox
parent 733353fbc9
commit 6779336bb7
2 changed files with 2 additions and 2 deletions

View File

@@ -2446,7 +2446,7 @@ void AMSPreview::doRender(wxDC &dc)
dc.SetPen(wxPen(*wxTRANSPARENT_PEN));
if (wxWindow::IsEnabled()) {
if (wxWindow::IsThisEnabled()) {
wxColour color = iter->material_colour;
change_the_opacity(color);
dc.SetBrush(wxBrush(color));