Skip to content

Commit

Permalink
preselect already selected
Browse files Browse the repository at this point in the history
to see the entered values when going back
  • Loading branch information
lslezak committed Mar 12, 2014
1 parent 696eff2 commit 7e85fea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clients/inst_scc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def main
# redirect the scc_api log to y2log
SccApi::GlobalLogger.instance.log = Y2Logger.instance

@selected_addons = []
start_workflow
end

Expand Down Expand Up @@ -276,7 +277,7 @@ def run_with_feedback(header, label, &block)
end

def addon_selection_items(addons)
addons.map{|addon| Item(Id(addon.name), addon.label)}
addons.map{|a| Item(Id(a.name), a.label, @selected_addons.include?(a))}
end

def addon_selection_dialog_content(addons)
Expand Down

0 comments on commit 7e85fea

Please sign in to comment.