This commit is contained in:
Thomas Farstrike
2025-10-30 20:54:11 +01:00
parent 71ab5d1309
commit 394908fdae
2 changed files with 3 additions and 6 deletions
@@ -329,7 +329,7 @@ class AppDetail(Activity):
def uninstall_app(self, app_fullname):
self.install_button.add_state(lv.STATE.DISABLED)
self.install_label.set_text("Please wait...") # TODO: Put "Cancel" if cancellation is possible
self.install_label.set_text("Please wait...")
self.progress_bar.remove_flag(lv.obj.FLAG.HIDDEN)
self.progress_bar.set_value(42, True)
PackageManager.uninstall_app(app_fullname)
@@ -344,7 +344,7 @@ class AppDetail(Activity):
def download_and_install(self, zip_url, dest_folder, app_fullname):
self.install_button.add_state(lv.STATE.DISABLED)
self.install_label.set_text("Please wait...") # TODO: Put "Cancel" if cancellation is possible
self.install_label.set_text("Please wait...")
self.progress_bar.remove_flag(lv.obj.FLAG.HIDDEN)
self.progress_bar.set_value(20, True)
try:
+1 -4
View File
@@ -8,9 +8,6 @@ import mpos.ui
from mpos.app.activity import Activity
from mpos.content.intent import Intent
from mpos.content.pm import PackageManager
# the code uses things like:
# mpos.ui.set_foreground_app(fullname)
# Activity.startActivity(None, Intent(activity_class=main_activity))
def good_stack_size():
stacksize = 24*1024
@@ -81,7 +78,7 @@ def execute_script(script_source, is_file, cwd=None, classname=None):
""" Unused:
# Run the script in a new thread:
# TODO: check if the script exists here instead of launching a new thread?
# NOTE: check if the script exists here instead of launching a new thread?
def execute_script_new_thread(scriptname, is_file):
print(f"main.py: execute_script_new_thread({scriptname},{is_file})")
try: