Skip to content

Commit

Permalink
Simplify next_handler for additional_dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Dec 12, 2016
1 parent 64ba4fe commit f43c9ef
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/lib/installation/select_system_role.rb
Expand Up @@ -98,16 +98,11 @@ def next_handler

apply_role(role_id)

case run_clients(role_id)
when :next
super
when :back
# We show the main role dialog; but the additional clients have
# drawn over it, so do it again, and propagate its result.
finish_dialog(run)
when :abort
finish_dialog(:abort)
end
result = run_clients(role_id)
# We show the main role dialog; but the additional clients have
# drawn over it, so do it again, and propagate its result.
result = self.class.run if result == :back
finish_dialog(result)
end

private
Expand Down

0 comments on commit f43c9ef

Please sign in to comment.