FIX: [STUDIO-1618] ProgressDialog: update dark before show

Change-Id: I951940d1cfa864f8abdae53ed1b151ea6bf1ea4a
This commit is contained in:
chunmao.guo 2022-12-08 16:59:35 +08:00 committed by Lane.Wei
parent aab62b77bf
commit 967909937d

View file

@ -77,7 +77,6 @@ ProgressDialog::ProgressDialog(const wxString &title, const wxString &message, i
Create(title, message, maximum, parent, style);
Bind(wxEVT_PAINT, &ProgressDialog::OnPaint, this);
Bind(wxEVT_CLOSE_WINDOW, &ProgressDialog::OnClose, this);
wxGetApp().UpdateDlgDarkUI(this);
}
void ProgressDialog::OnPaint(wxPaintEvent &evt) {}
@ -261,6 +260,8 @@ bool ProgressDialog::Create(const wxString &title, const wxString &message, int
m_sizer_main->Add(m_sizer_bottom, 0, wxEXPAND | wxLEFT | wxRIGHT, FromDIP(28));
m_sizer_main->Add(0, 0, 0, wxEXPAND | wxTOP, FromDIP(10));
wxGetApp().UpdateDlgDarkUI(this);
SetSizer(m_sizer_main);
Layout();
Fit();