Skip to content

Commit

Permalink
Allow to install multiple apps
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel committed Jun 22, 2024
1 parent 73c0310 commit a243eca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/firmware_apps/app_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ def handle_index(self):
def install_app(self, app):
try:
install_app(app)
self.update_state("main_menu")
if self.available_menu:
self.update_state("available_menu")
else:
self.update_state("main_menu")
eventbus.emit(InstallNotificationEvent())
eventbus.emit(ShowNotificationEvent("Installed the app!"))
except MemoryError:
Expand Down Expand Up @@ -134,8 +137,6 @@ def prepare_available_menu(self):
def on_select(_, i):
self.to_install_app = self.app_store_index[i]
self.update_state("installing_app")
if self.available_menu:
self.available_menu._cleanup()

def exit_available_menu():
self.cleanup_ui_widgets()
Expand Down

0 comments on commit a243eca

Please sign in to comment.