Skip to content

Commit

Permalink
Filter out beta releases: UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Jul 21, 2016
1 parent b381349 commit 36a5829
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/registration/ui/addon_selection_base_dialog.rb
Expand Up @@ -85,6 +85,8 @@ def addon_selected?(_addon)
def content
VBox(
Left(Heading(heading)),
Left(CheckBox(Id(:filter_beta), Opt(:notify),
_("&Filter Out Beta Versions"))),
addons_box,
Left(Label(_("Details"))),
details_widget
Expand Down Expand Up @@ -189,6 +191,9 @@ def handle_dialog
ret = Stage.initial && !AbortConfirmation.run ? nil : :abort
# when canceled switch to old selection
Addon.selected.replace(@old_selection) if ret == :abort
when :filter_beta
filter_beta_releases(Yast::UI.QueryWidget(Id(ret), :Value))
reactivate_dependencies
else
handle_addon_selection(ret)
end
Expand Down

0 comments on commit 36a5829

Please sign in to comment.