Skip to content

Commit

Permalink
With the new service_widget it is not needed to swap
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Jan 11, 2019
1 parent e9c2c99 commit 4f874b6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/lib/y2firewall/dialogs/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def run

loop do
result = super
swap_api if result == :swap_mode
break unless continue_running?(result)
end

Expand Down Expand Up @@ -114,7 +113,7 @@ def back_handler
#
# @return [Boolean] true in case of a dialog redraw or an api change
def continue_running?(result)
result == :redraw || result == :swap_mode
result == :redraw
end

# Convenience method which return an instance of Y2Firewall::Firewalld
Expand All @@ -124,12 +123,6 @@ def fw
Y2Firewall::Firewalld.instance
end

# Modify the firewalld API instance in case the systemd service state has
# changed.
def swap_api
fw.api = Y2Firewall::Firewalld::Api.new
end

# Writes down the firewall configuration and the systemd service
# modifications
def apply_changes
Expand Down

0 comments on commit 4f874b6

Please sign in to comment.