Skip to content

Commit

Permalink
Merge pull request #847 from yast/bsc-1167248/restore-scroll-when-needed
Browse files Browse the repository at this point in the history
[bsc#1167248] Restore scroll when needed
  • Loading branch information
imobachgs committed Mar 20, 2020
2 parents 71b5acc + 82e666d commit b47f0bc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions package/yast2-installation.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Mar 20 14:04:48 UTC 2020 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

- In the proposal runner, restore the scroll only when it was
previously saved (bsc#1167248).
- 4.2.40

-------------------------------------------------------------------
Wed Mar 18 16:52:30 UTC 2020 - Ladislav Slezák <lslezak@suse.cz>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-installation.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

Name: yast2-installation
Version: 4.2.39
Version: 4.2.40
Release: 0
Group: System/YaST
License: GPL-2.0-only
Expand Down
3 changes: 3 additions & 0 deletions src/lib/installation/proposal_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,10 @@ def save_vertical_scroll
@proposal_vscroll = Yast::UI.QueryWidget(Id(:proposal), :VScrollValue)
end

# Restores the vertical scroll if previously saved
def restore_vertical_scroll
return unless @proposal_vscroll

Yast::UI.ChangeWidget(Id(:proposal), :VScrollValue, @proposal_vscroll)
end

Expand Down

0 comments on commit b47f0bc

Please sign in to comment.