Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcaab563

Browse files
Simplify and fix settings app
1 parent51368a3 commitcaab563

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-
frommpos.appsimportActivity,ActivityNavigator,Intent
1+
frommpos.appsimportActivity,Intent
2+
frommpos.navigatorimportActivityNavigator
23

34
importmpos.config
45
importmpos.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
returnstacksize
2222

2323
# Run the script in the current thread:
24-
defexecute_script(script_source,is_file,cwd=None,classname=None,app=None):
24+
defexecute_script(script_source,is_file,cwd=None,classname=None):
2525
importutime# for timing read and compile
2626
thread_id=_thread.get_ident()
2727
compile_name='script'ifnotis_fileelsescript_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
ifapp.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)

[8]ページ先頭

©2009-2025 Movatter.jp