Skip to content

Commit

Permalink
allow adding extensions for already registered extensions
Browse files Browse the repository at this point in the history
fixes the problem that HAGEO cannot be selected after registering
HA only and then going back
  • Loading branch information
lslezak committed Jun 20, 2014
1 parent 257e714 commit 7c24986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/registration/ui/addon_selection_dialog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ def reactivate_dependencies
def enable_addon?(addon)
# Do not support unregister
return false if addon.registered?
# Do not allow to select child without selected parent
return false if addon.depends_on && !addon.depends_on.selected?
# Do not allow to select child without selected or already registered parent
return false if addon.depends_on && (!addon.depends_on.selected? || !addon.depends_on.registered?)
# Do not allow to unselect parent if any children is selected
return false if addon.children.any?(&:selected?)

Expand Down

0 comments on commit 7c24986

Please sign in to comment.