FIX:clear wxwidgets asset

jira: nojia
Change-Id: I8ba2849afa07bc162a55b326c3d9a45150243ac3
(cherry picked from commit 96ba14c86d3cf180eeb585185d31bcb5d5db7415)
This commit is contained in:
yongfang.bian
2025-07-18 14:22:05 +08:00
committed by Noisyfox
parent 6c242c5101
commit 2f18d25a2d
8 changed files with 22 additions and 14 deletions

View File

@@ -2396,6 +2396,11 @@ bool GUI_App::on_init_inner()
BOOST_LOG_TRIVIAL(info) << boost::format("gui mode, Current OrcaSlicer Version %1%")%SoftFever_VERSION;
BOOST_LOG_TRIVIAL(info) << get_system_info();
// initialize label colors and fonts
init_label_colours();
init_fonts();
wxGetApp().Update_dark_mode_flag();
#if defined(__WINDOWS__)
HMODULE hKernel32 = GetModuleHandleW(L"kernel32.dll");
m_is_arm64 = false;
@@ -2470,10 +2475,6 @@ bool GUI_App::on_init_inner()
#endif // __WINDOWS__
#endif
// initialize label colors and fonts
init_label_colours();
init_fonts();
wxGetApp().Update_dark_mode_flag();
#ifdef _MSW_DARK_MODE