Skip to content

Commit 64afe0b

Browse files
committed
Fix theme patcher circular import on PyUI startup.
Move Display and Language imports back into methods so theme loading does not crash before the main menu opens.
1 parent 740d980 commit 64afe0b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

App/PyUI/main-ui/themes/theme_patcher.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import shutil
44
import time
55
from devices.device import Device
6-
from display.display import Display
7-
from menus.language.language import Language
86
from utils.cached_exists import CachedExists
97
from utils.logger import PyUiLogger
108

@@ -37,6 +35,7 @@ def convert_to_qoi(cls, path):
3735
return False
3836

3937
Display.clear("Patching Theme")
38+
from menus.language.language import Language
4039
Display.display_message(Language.label("patchingThemeAssets", "Patching theme to faster assets"))
4140
for dirpath, dirnames, filenames in os.walk(path):
4241
for filename in filenames:

0 commit comments

Comments
 (0)