Merge pull request #454 from mwhudson/no-network-no-snaps
do not show the snaplist if there is no network
This commit is contained in:
commit
452b03b7e8
|
@ -156,8 +156,9 @@ class SnapListController(BaseController):
|
||||||
self.loader.start()
|
self.loader.start()
|
||||||
|
|
||||||
def default(self):
|
def default(self):
|
||||||
if self.loader.failed:
|
if self.loader.failed or not self.base_model.network.has_network:
|
||||||
# If loading snaps failed, skip the screen.
|
# If loading snaps failed or the network is disabled, skip the
|
||||||
|
# screen.
|
||||||
raise Skip()
|
raise Skip()
|
||||||
if 'snaps' in self.answers:
|
if 'snaps' in self.answers:
|
||||||
to_install = {}
|
to_install = {}
|
||||||
|
|
Loading…
Reference in New Issue