FIX: display fault in dark mode about AMS

jira: [STUDIO-8964]
Change-Id: If2785b3bf6b8067f87eef610af548abbe841603a
(cherry picked from commit b22618db87c0bfdd4b36f108c258342a9db550d0)
This commit is contained in:
xin.zhang 2025-01-03 18:43:02 +08:00 committed by Noisyfox
parent 58c2ee4f06
commit 1f2b320b94

View file

@ -686,6 +686,7 @@ void MachineInfoPanel::update_ams_ext(MachineObject *obj)
if (add_count > 0) {
for (int i = 0; i < add_count; i++) {
auto amspanel = new AmsPanel(this, wxID_ANY);
wxGetApp().UpdateDarkUIWin(amspanel);
m_ams_info_sizer->Add(amspanel, 1, wxEXPAND, 5);
m_amspanel_list.Add(amspanel);
}