Skip to content

Commit 740d980

Browse files
Initialize language pack before theme and display startup.
Load Language right after config init so per-language fonts are available when Theme and Display first render, avoiding mixed startup state on non-English locales. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 2416a14 commit 740d980

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

App/PyUI/main-ui/mainui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ def main():
221221
PyUiConfig.init(args.pyUiConfig)
222222
UserConfig.reload_config()
223223
CfwSystemConfig.init(args.cfwConfig)
224+
Language.init()
224225

225226
main_ui_mode = True
226227

@@ -247,7 +248,6 @@ def main():
247248
#2nd init is just to allow scaling if needed
248249
Theme.convert_theme_if_needed(selected_theme, Device.get_device().screen_width(), Device.get_device().screen_height())
249250
Controller.init()
250-
Language.init()
251251

252252
Device.get_device().perform_sdcard_ro_check()
253253

0 commit comments

Comments
 (0)