Merge lp:~gary-lasker/software-center/installed-pane-refresh into lp:software-center
Status: | Merged |
---|---|
Merged at revision: | 2926 |
Proposed branch: | lp:~gary-lasker/software-center/installed-pane-refresh |
Merge into: | lp:software-center |
Diff against target: |
49 lines (+18/-4) 1 file modified
softwarecenter/ui/gtk3/panes/installedpane.py (+18/-4) |
To merge this branch: | bzr merge lp:~gary-lasker/software-center/installed-pane-refresh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Vogt | Approve | ||
Review via email: mp+99641@code.launchpad.net |
Description of the change
This branch implements a simple, low-risk fix to the quite annoying usability issue of the installed view pane refreshing every time that it is displayed, whether or not its contents have changed. Any expanded treeview categories are reset each time, and the user's place in the list is lost as well. Please take a look at corresponding bug 828887 for details, including steps to reproduce.
With this change, we only refresh the view when the contents have actually changed due to one of either 1. a different channel being selected, or 2. when the pane content itself has been refreshed (e.g., when an item is installed or removed).
All unit tests pass and I did a fair bit of additional testing of the application in use and was unable to find any regression or unwanted side effects.
Note that there is still room for improvement in the installed pane refreshing. Particularly, when there is a refresh on the view due to an install or removal, the entire treeview collapses again. This is annoying, but is far less often a use case than the one addressed by this fix (that is, simple navaigating between views).
Many thanks in advance for your review!
Thanks, that looks good.