Skip to content

Commit

Permalink
fix return value to be boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Mar 23, 2018
1 parent c189b94 commit f38b9b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/general/src/modules/Popup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,10 @@ def TimedAnyQuestion(headline, message, yes_button_message, no_button_message, f
def TimedErrorAnyQuestion(headline, message, yes_button_message, no_button_message, focus, timeout_seconds)
buttons = { yes: yes_button_message, no: no_button_message }
focus_symbol = focus == :focus_no ? :no : :yes
Yast2::Popup.show(message, headline: headline, buttons: buttons,
ret = Yast2::Popup.show(message, headline: headline, buttons: buttons,
focus: focus_symbol, timeout: timeout_seconds)

ret == :yes
end

# Dialog which displays the "message" and has a <b>Continue</b>
Expand Down

0 comments on commit f38b9b6

Please sign in to comment.