Skip to content

Commit caab563

Browse files
Simplify and fix settings app
1 parent 51368a3 commit caab563

File tree

2 files changed

+4
-4
lines changed
  • internal_filesystem

2 files changed

+4
-4
lines changed

internal_filesystem/builtin/apps/com.micropythonos.settings/assets/settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from mpos.apps import Activity, ActivityNavigator, Intent
1+
from mpos.apps import Activity, Intent
2+
from mpos.navigator import ActivityNavigator
23

34
import mpos.config
45
import mpos.ui

internal_filesystem/lib/mpos/apps.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def good_stack_size():
2121
return stacksize
2222

2323
# Run the script in the current thread:
24-
def execute_script(script_source, is_file, cwd=None, classname=None, app=None):
24+
def execute_script(script_source, is_file, cwd=None, classname=None):
2525
import utime # for timing read and compile
2626
thread_id = _thread.get_ident()
2727
compile_name = 'script' if not is_file else script_source
@@ -123,7 +123,7 @@ def start_app(fullname):
123123
print(f"WARNING: start_app can't start {fullname} because it doesn't have a main_launcher_activity")
124124
return
125125
start_script_fullpath = f"{app.installed_path}/{app.main_launcher_activity.get('entrypoint')}"
126-
execute_script(start_script_fullpath, True, app.installed_path + "/assets/", app.main_launcher_activity.get("classname"), app)
126+
execute_script(start_script_fullpath, True, app.installed_path + "/assets/", app.main_launcher_activity.get("classname"))
127127
# Launchers have the bar, other apps don't have it
128128
if app.is_valid_launcher():
129129
mpos.ui.topmenu.open_bar()
@@ -143,4 +143,3 @@ def restart_launcher():
143143
start_app(app.fullname)
144144
break
145145

146-

0 commit comments

Comments
 (0)