Reset page when doing a FULL redisplay
This fixes an issue where the app display would remember the page between switching menus. https://bugzilla.gnome.org/show_bug.cgi?id=597577
This commit is contained in:
parent
16cb878f4e
commit
4f4e54cbf7
@ -639,12 +639,12 @@ GenericDisplay.prototype = {
|
|||||||
* their own while the user was browsing through the result pages.
|
* their own while the user was browsing through the result pages.
|
||||||
* SUBSEARCH - Indicates that the current _search is a superstring of the previous
|
* SUBSEARCH - Indicates that the current _search is a superstring of the previous
|
||||||
* one, which implies we only need to re-search through previous results.
|
* one, which implies we only need to re-search through previous results.
|
||||||
* FULL - Indicates that we need refresh all displayed items.
|
* FULL - Indicates that we need recreate all displayed items; implies RESET_CONTROLS as well
|
||||||
*/
|
*/
|
||||||
_redisplay: function(flags) {
|
_redisplay: function(flags) {
|
||||||
let resetPage = (flags & RedisplayFlags.RESET_CONTROLS) > 0;
|
|
||||||
let isSubSearch = (flags & RedisplayFlags.SUBSEARCH) > 0;
|
let isSubSearch = (flags & RedisplayFlags.SUBSEARCH) > 0;
|
||||||
let fullReload = (flags & RedisplayFlags.FULL) > 0;
|
let fullReload = (flags & RedisplayFlags.FULL) > 0;
|
||||||
|
let resetPage = (flags & RedisplayFlags.RESET_CONTROLS) > 0 || fullReload;
|
||||||
|
|
||||||
let hadSelected = this.hasSelected();
|
let hadSelected = this.hasSelected();
|
||||||
this.unsetSelected();
|
this.unsetSelected();
|
||||||
|
Loading…
Reference in New Issue
Block a user