do not show the snaplist if there is no network

This commit is contained in:
Michael Hudson-Doyle 2019-04-12 16:12:14 +12:00
parent d4e8cb7ffa
commit 0b9af813e5
1 changed files with 3 additions and 2 deletions

View File

@ -156,8 +156,9 @@ class SnapListController(BaseController):
self.loader.start()
def default(self):
if self.loader.failed:
# If loading snaps failed, skip the screen.
if self.loader.failed or not self.base_model.network.has_network:
# If loading snaps failed or the network is disabled, skip the
# screen.
raise Skip()
if 'snaps' in self.answers:
to_install = {}