wait for snap update check to complete before interpreting answers
This commit is contained in:
parent
ae9dd41e44
commit
b547850791
|
@ -187,11 +187,6 @@ class RefreshController(BaseController):
|
|||
raise AssertionError("unexpected index {}".format(index))
|
||||
if show:
|
||||
self.ui.set_body(RefreshView(self))
|
||||
if 'update' in self.answers:
|
||||
if self.answers['update']:
|
||||
self.ui.body.update()
|
||||
else:
|
||||
self.done()
|
||||
else:
|
||||
raise Skip()
|
||||
|
||||
|
|
|
@ -229,6 +229,11 @@ class RefreshView(BaseView):
|
|||
self.title = self.available_title
|
||||
self.controller.ui.set_header(self.available_title)
|
||||
self._w = screen(rows, buttons, excerpt=excerpt)
|
||||
if 'update' in self.controller.answers:
|
||||
if self.controller.answers['update']:
|
||||
self.update()
|
||||
else:
|
||||
self.controller.done()
|
||||
|
||||
def update(self, sender=None):
|
||||
self.spinner.stop()
|
||||
|
|
Loading…
Reference in New Issue