Skip to content

Commit 9d46ac3

Browse files
fix launcher startup and tweak menu drawer
1 parent b79ce28 commit 9d46ac3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

internal_filesystem/lib/mpos/ui/topmenu.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ def create_drawer(display=None):
204204
drawer.set_size(lv.pct(100),lv.pct(90))
205205
drawer.set_pos(0,NOTIFICATION_BAR_HEIGHT)
206206
drawer.set_scroll_dir(lv.DIR.VER)
207+
drawer.set_scrollbar_mode(lv.SCROLLBAR_MODE.OFF)
207208
drawer.set_style_pad_all(15, 0)
208209
drawer.set_style_border_width(0, 0)
209210
drawer.set_style_radius(0, 0)

internal_filesystem/main.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,16 @@
4444
# This will throw an exception if there is already a "/builtin" folder present
4545
print("main.py: WARNING: could not import/run freezefs_mount_builtin: ", e)
4646

47-
from mpos import apps
48-
49-
apps.execute_script("builtin/system/button.py", True) # Install button handler through IRQ
47+
mpos.apps.execute_script("builtin/system/button.py", True) # Install button handler through IRQ
5048

5149
try:
5250
import mpos.wifi
53-
import mpos.apps
5451
_thread.stack_size(mpos.apps.good_stack_size())
5552
_thread.start_new_thread(mpos.wifi.WifiService.auto_connect, ())
5653
except Exception as e:
5754
print(f"Couldn't start mpos.wifi.WifiService.auto_connect thread because: {e}")
5855

59-
apps.restart_launcher()
56+
mpos.apps.restart_launcher()
6057

6158
# If we got this far without crashing, then no need to rollback the update:
6259
try:

0 commit comments

Comments
 (0)