Skip to content
Snippets Groups Projects
Commit a162be94 authored by ave's avatar ave Committed by ave
Browse files

tentatively: support no app_ctx

parent 4b2b1dba
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,9 @@ class ApplicationContext: ...@@ -47,7 +47,9 @@ class ApplicationContext:
class Application(BaseView): class Application(BaseView):
def __init__(self, app_ctx: ApplicationContext) -> None: def __init__(self, app_ctx: ApplicationContext) -> None:
self._app_ctx = app_ctx self._app_ctx = app_ctx
self._wifi_preference = app_ctx.bundle_metadata["app"].get("wifi_preference") self._wifi_preference = (
app_ctx.bundle_metadata["app"].get("wifi_preference") if app_ctx else None
)
super().__init__() super().__init__()
def on_enter(self, vm: Optional[ViewManager]) -> None: def on_enter(self, vm: Optional[ViewManager]) -> None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment