Skip to content

Commit

Permalink
Merge pull request #539 from mwhudson/dont-call-default
Browse files Browse the repository at this point in the history
update a few leftover calls to controller.default()
  • Loading branch information
mwhudson authored Sep 25, 2019
2 parents 8e29d93 + 130c95f commit cff9b05
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions subiquity/controllers/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ def _probed(self, fut, restricted=False):
else:
self._probe_state = ProbeState.FAILED
if self.showing:
self.default()
self.start_ui()
else:
self._probe_state = ProbeState.DONE
# Should do something here if probing found no devices.
if self.showing:
self.default()
self.start_ui()

def _check_probe_timeout(self):
log.debug("_check_probe_timeout")
Expand Down
2 changes: 1 addition & 1 deletion subiquity/controllers/installprogress.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def curtin_error(self, log_text=None):
self.progress_view.set_status(('info_error',
_("An error has occurred")))
self.progress_view.show_complete(True)
self.default()
self.start_ui()

def _bg_run_command_logged(self, cmd, **kwargs):
cmd = ['systemd-cat', '--level-prefix=false',
Expand Down
2 changes: 1 addition & 1 deletion subiquity/ui/views/filesystem/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def create_vg(self, button=None):
self.show_stretchy_overlay(VolGroupStretchy(self))

def cancel(self, button=None):
self.controller.default()
self.controller.start_ui()

def reset(self, button):
self.controller.reset()
Expand Down
2 changes: 1 addition & 1 deletion subiquity/ui/views/filesystem/guided.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def __init__(self, model, controller, method):
+ _("Choose the disk to install to:"))))

def cancel(self, btn=None):
self.controller.default()
self.controller.start_ui()

def choose_disk(self, btn, disk):
self.controller.reformat(disk)
Expand Down

0 comments on commit cff9b05

Please sign in to comment.