Initialize fonts before first UI action
This commit is contained in:
parent
322583bc78
commit
14cb4a1314
1 changed files with 5 additions and 5 deletions
|
@ -1106,13 +1106,17 @@ bool GUI_App::on_init_inner()
|
|||
}
|
||||
}
|
||||
|
||||
// Set language and color mode before check_older_app_config() call
|
||||
// !!! Initialization of UI settings as a language, application color mode, fonts... have to be done before first UI action.
|
||||
// Like here, before the show InfoDialog in check_older_app_config()
|
||||
|
||||
// If load_language() fails, the application closes.
|
||||
load_language(wxString(), true);
|
||||
#ifdef _MSW_DARK_MODE
|
||||
NppDarkMode::InitDarkMode(app_config->get("dark_color_mode") == "1", app_config->get("sys_menu_enabled") == "1");
|
||||
#endif
|
||||
// initialize label colors and fonts
|
||||
init_label_colours();
|
||||
init_fonts();
|
||||
|
||||
if (m_last_config_version) {
|
||||
if (*m_last_config_version < *Semver::parse(SLIC3R_VERSION))
|
||||
|
@ -1204,10 +1208,6 @@ bool GUI_App::on_init_inner()
|
|||
#endif // __WXMSW__
|
||||
}
|
||||
|
||||
// initialize label colors and fonts
|
||||
init_label_colours();
|
||||
init_fonts();
|
||||
|
||||
// Suppress the '- default -' presets.
|
||||
preset_bundle->set_default_suppressed(app_config->get("no_defaults") == "1");
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue