Skip to content

Commit

Permalink
Fix launch bug
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel committed May 30, 2024
1 parent b36650f commit efd1975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/system/launcher/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ def update_menu(self):
def launch(self, item):
module_name = item["path"]
fn = item["callable"]
app_id = f"{module_name}.{fn}"
app_id = f"apps.{module_name}.app"
app = self._apps.get(app_id)
print(self._apps)
if app is None:
print(f"Creating app {app_id}...")
module = __import__(module_name, None, None, (fn,))
module = __import__(app_id, None, None, (fn,))
app = getattr(module, fn)()
self._apps[app_id] = app
eventbus.emit(RequestStartAppEvent(app, foreground=True))
Expand Down

0 comments on commit efd1975

Please sign in to comment.