Skip to content

Commit

Permalink
Sle 15 sp1 bsc 1136708 (#940)
Browse files Browse the repository at this point in the history
* Slideshow: Flag for switchin on/off release notes tab.
  • Loading branch information
schubi2 committed Jun 18, 2019
1 parent fec7438 commit 0281ccb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
20 changes: 12 additions & 8 deletions library/packages/src/modules/SlideShow.rb
Expand Up @@ -663,7 +663,9 @@ def add_relnotes_for_product(product, relnotes, tabs)
end

# Rebuild the dialog. Useful if slides become available post-creating the dialog.
def RebuildDialog
#
# @param [Boolean] show_release_notes release notes tab will be shown.
def RebuildDialog(show_release_notes = false)
contents = Empty()

show_slides = Slides.HaveSlideSupport && Slides.HaveSlides
Expand All @@ -677,13 +679,15 @@ def RebuildDialog
tabs.unshift(Item(Id(:showSlide), _("Slide Sho&w")))
end

@_rn_tabs = {}
if @_relnotes.key?(@_base_product)
add_relnotes_for_product @_base_product, @_relnotes[@_base_product], tabs
end
@_relnotes.each do |product, relnotes|
if @_base_product != product
add_relnotes_for_product product, relnotes, tabs
if show_release_notes
@_rn_tabs = {}
if @_relnotes.key?(@_base_product)
add_relnotes_for_product @_base_product, @_relnotes[@_base_product], tabs
end
@_relnotes.each do |product, relnotes|
if @_base_product != product
add_relnotes_for_product product, relnotes, tabs
end
end
end

Expand Down
7 changes: 7 additions & 0 deletions package/yast2.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Jun 18 09:06:13 CEST 2019 - schubi@suse.de

- Slideshow: Flag for switching on/off release notes tab.
(bsc#1136708)
- 4.1.71

-------------------------------------------------------------------
Thu May 16 09:01:59 UTC 2019 - Stefan Hundhammer <shundhammer@suse.com>

Expand Down
3 changes: 2 additions & 1 deletion package/yast2.spec
Expand Up @@ -17,7 +17,8 @@


Name: yast2
Version: 4.1.70
Version: 4.1.71

Release: 0
Summary: YaST2 - Main Package
License: GPL-2.0-only
Expand Down

0 comments on commit 0281ccb

Please sign in to comment.