Skip to content

Commit

Permalink
Improve dialog asking if system should be cloned (bnc#900028)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Nov 4, 2014
1 parent 81c3511 commit cdc91e9
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/clients/clone_proposal.rb
Expand Up @@ -56,7 +56,7 @@ def main
when CLONE_ENABLE_LINK
@clone_settings.enabled = true
when CLONE_ACTION_ID
clone_dialog
@clone_settings.enabled = Popup.YesNo(_("Write AutoYaST profile to /root/autoinst.xml at the end of installation?"))
else
raise "Unexpected value #{chosen_id}"
end
Expand Down Expand Up @@ -113,20 +113,6 @@ def proposal_text

ret << "</li></ul>\n"
end

def clone_dialog
dialog = VBox(
CheckBox(Id(:value_holder), _("Write AutoYaST profile to /root/autoinst.xml"),
@clone_settings.enabled?
),
PushButton(Id(:ok), Label.OKButton)
)

UI.OpenDialog dialog
UI.UserInput
@clone_settings.enabled = UI.QueryWidget(:value_holder, :Value)
UI.CloseDialog
end
end unless defined? (CloneProposalClient) #avoid class redefinition if reevaluated
end

Expand Down

0 comments on commit cdc91e9

Please sign in to comment.