File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -37,19 +37,20 @@ ArxTopLevelWindow::ArxTopLevelWindow()
3737// the wxApp
3838bool WxRxApp::OnInit ()
3939{
40- wxTheApp->SetTopWindow (new ArxTopLevelWindow ());
41- if (wxTheApp->GetTopWindow () == nullptr )
42- return false ;
43- if (Init_wxPython () == false )
44- return false ;
4540#ifdef WXWIN33
4641 resbuf rb;
47- if (auto rt = acedGetVar (_T (" COLORTHEME" ), &rb); rt == RTNORM && rb.restype == RTSHORT && rb.resval .rint == 0 )
42+ const auto rt = acedGetVar (_T (" COLORTHEME" ), &rb);
43+ if (rt == RTNORM && rb.restype == RTSHORT && rb.resval .rint == 0 )
4844 {
4945 if (!wxTheApp->MSWEnableDarkMode (wxApp::DarkMode_Always))
5046 acutPrintf (_T (" MSWEnableDarkMode failed" ));
5147 }
5248#endif
49+ wxTheApp->SetTopWindow (new ArxTopLevelWindow ());
50+ if (wxTheApp->GetTopWindow () == nullptr )
51+ return false ;
52+ if (Init_wxPython () == false )
53+ return false ;
5354 return true ;
5455}
5556
You can’t perform that action at this time.
0 commit comments