fix launcher startup and tweak menu drawer

This commit is contained in:
Thomas Farstrike
2025-07-04 16:42:30 +02:00
parent b79ce28532
commit 9d46ac3dee
2 changed files with 3 additions and 5 deletions
@@ -204,6 +204,7 @@ def create_drawer(display=None):
drawer.set_size(lv.pct(100),lv.pct(90))
drawer.set_pos(0,NOTIFICATION_BAR_HEIGHT)
drawer.set_scroll_dir(lv.DIR.VER)
drawer.set_scrollbar_mode(lv.SCROLLBAR_MODE.OFF)
drawer.set_style_pad_all(15, 0)
drawer.set_style_border_width(0, 0)
drawer.set_style_radius(0, 0)
+2 -5
View File
@@ -44,19 +44,16 @@ except Exception as e:
# This will throw an exception if there is already a "/builtin" folder present
print("main.py: WARNING: could not import/run freezefs_mount_builtin: ", e)
from mpos import apps
apps.execute_script("builtin/system/button.py", True) # Install button handler through IRQ
mpos.apps.execute_script("builtin/system/button.py", True) # Install button handler through IRQ
try:
import mpos.wifi
import mpos.apps
_thread.stack_size(mpos.apps.good_stack_size())
_thread.start_new_thread(mpos.wifi.WifiService.auto_connect, ())
except Exception as e:
print(f"Couldn't start mpos.wifi.WifiService.auto_connect thread because: {e}")
apps.restart_launcher()
mpos.apps.restart_launcher()
# If we got this far without crashing, then no need to rollback the update:
try: