AppDisplay: refresh the view after refreshing sections
ViewByCategories._removeAll clears the sections, but the filter passed to view still expects them to exists. Therefore, refresh the view after the section has been rebuilt and the All filter reapplied. https://bugzilla.gnome.org/show_bug.cgi?id=645801
This commit is contained in:
parent
09607f6aa7
commit
fb019a7cbf
@ -34,6 +34,7 @@ AlphabeticalView.prototype = {
|
|||||||
this._grid = new IconGrid.IconGrid({ xAlign: St.Align.START });
|
this._grid = new IconGrid.IconGrid({ xAlign: St.Align.START });
|
||||||
this._appSystem = Shell.AppSystem.get_default();
|
this._appSystem = Shell.AppSystem.get_default();
|
||||||
|
|
||||||
|
this._apps = [];
|
||||||
this._filterApp = null;
|
this._filterApp = null;
|
||||||
|
|
||||||
let box = new St.BoxLayout({ vertical: true });
|
let box = new St.BoxLayout({ vertical: true });
|
||||||
@ -224,7 +225,6 @@ ViewByCategories.prototype = {
|
|||||||
|
|
||||||
let sections = this._appSystem.get_sections();
|
let sections = this._appSystem.get_sections();
|
||||||
this._apps = apps;
|
this._apps = apps;
|
||||||
this._view.refresh(apps);
|
|
||||||
|
|
||||||
/* Translators: Filter to display all applications */
|
/* Translators: Filter to display all applications */
|
||||||
this._addFilter(_("All"), -1);
|
this._addFilter(_("All"), -1);
|
||||||
@ -236,6 +236,7 @@ ViewByCategories.prototype = {
|
|||||||
this._addFilter(sections[i], i);
|
this._addFilter(sections[i], i);
|
||||||
|
|
||||||
this._selectCategory(-1);
|
this._selectCategory(-1);
|
||||||
|
this._view.refresh(apps);
|
||||||
|
|
||||||
if (this._focusDummy) {
|
if (this._focusDummy) {
|
||||||
let focused = this._focusDummy.has_key_focus();
|
let focused = this._focusDummy.has_key_focus();
|
||||||
|
Loading…
Reference in New Issue
Block a user