Skip to content

Commit

Permalink
Correct the Beta checkbox initial value
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Jul 25, 2016
1 parent 0bf779a commit f948795
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/registration/ui/addon_selection_base_dialog.rb
Expand Up @@ -24,6 +24,8 @@ class AddonSelectionBaseDialog
Yast.import "Stage"
Yast.import "Arch"

FILTER_BETAS_INITIALLY = true

# constructor
# @param registration [Registration::Registration] use this Registration object for
# communication with SCC
Expand All @@ -34,7 +36,7 @@ def initialize(registration)
# sort the addons
@all_addons.sort!(&::Registration::ADDON_SORTER)

filter_beta_releases(true)
filter_beta_releases(FILTER_BETAS_INITIALLY)

@old_selection = Addon.selected.dup

Expand Down Expand Up @@ -86,7 +88,7 @@ def content
VBox(
Left(Heading(heading)),
Left(CheckBox(Id(:filter_beta), Opt(:notify),
_("&Filter Out Beta Versions"))),
_("&Filter Out Beta Versions"), FILTER_BETAS_INITIALLY)),
addons_box,
Left(Label(_("Details"))),
details_widget
Expand Down

0 comments on commit f948795

Please sign in to comment.