Skip to content

Commit

Permalink
parameter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Mar 13, 2014
1 parent 0455400 commit e7ed9a2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/clients/inst_scc.rb
Expand Up @@ -486,7 +486,7 @@ def get_available_addons
end
end

def handle_register_addons_dialog
def handle_register_addons_dialog(addons_with_keys)
continue_buttons = [:next, :back, :close, :abort]

ret = nil
Expand All @@ -495,7 +495,7 @@ def handle_register_addons_dialog

if ret == :next
# register the add-ons
collect_addon_regkeys
collect_addon_regkeys(addons_with_keys)

ret = nil unless register_selected_addons
end
Expand All @@ -506,15 +506,16 @@ def handle_register_addons_dialog

# collect the entered reg keys from UI
# @return [Hassh<Addon,String>] addon => reg. code mapping
def collect_addon_regkeys(addons)
pairs = addons.map do |a|
def collect_addon_regkeys(addons_with_keys)
pairs = addons_with_keys.map do |a|
[a.name, UI.QueryWidget(Id(a.name), :Value)]
end
@known_reg_keys.merge!(Hash[pairs])
end

def register_addon(addon, reg_key)
# TODO FIXME: call SCC to register the addon here
log.info "Registering addon #{addon.name}..."
end

def register_selected_addons
Expand Down

0 comments on commit e7ed9a2

Please sign in to comment.