diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-04-14 19:05:57 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-04-14 19:05:57 (GMT) |
| commit | 66743d42c83ac0943f628fe2e6ab6852ba9b3f4f (patch) | |
| tree | 94391c5f87755d79c1a802de9b572ee7eee49186 /wasp/apps/launcher.py | |
| parent | 10706a9704fc75dac2e623341652b8b6f1fdf23f (diff) | |
wasp: Manager: Bring in proper separation of apps
This is getting us much closer to the final UI concept. We have a
quick ring from which we can select typical apps such as clock and
stopwatch which will (eventually) be supplemented with step counting
and heart rate monitoriing. More exotic apps (currenrtly torch, self
test, settings) are all relagated to the launcher ring.
Diffstat (limited to 'wasp/apps/launcher.py')
| -rw-r--r-- | wasp/apps/launcher.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wasp/apps/launcher.py b/wasp/apps/launcher.py index 4e76ab1..071a90c 100644 --- a/wasp/apps/launcher.py +++ b/wasp/apps/launcher.py @@ -29,7 +29,7 @@ class LauncherApp(): else: i -= 1 if i < 0: - wasp.system.switch(wasp.system.applications[0]) + wasp.system.switch(wasp.system.quick_ring[0]) return self._page = i @@ -50,11 +50,11 @@ class LauncherApp(): @property def _num_pages(self): """Work out what the highest possible pages it.""" - num_apps = len(wasp.system.applications) + num_apps = len(wasp.system.launcher_ring) return (num_apps + 3) // 4 def _get_page(self, i): - apps = wasp.system.applications + apps = wasp.system.launcher_ring page = apps[4*i: 4*(i+1)] while len(page) < 4: page.append(None) |
