dash: reload favorites when the installed app change
Force a reload of the favorite system, to pick apps that were uninstalled. https://bugzilla.gnome.org/show_bug.cgi?id=706878
This commit is contained in:

committed by
Giovanni Campagna

parent
6fbe765636
commit
e26a6ea71b
@ -423,7 +423,10 @@ const Dash = new Lang.Class({
|
||||
|
||||
this._appSystem = Shell.AppSystem.get_default();
|
||||
|
||||
this._appSystem.connect('installed-changed', Lang.bind(this, this._queueRedisplay));
|
||||
this._appSystem.connect('installed-changed', Lang.bind(this, function() {
|
||||
AppFavorites.getAppFavorites().reload();
|
||||
his._queueRedisplay();
|
||||
}));
|
||||
AppFavorites.getAppFavorites().connect('changed', Lang.bind(this, this._queueRedisplay));
|
||||
this._appSystem.connect('app-state-changed', Lang.bind(this, this._queueRedisplay));
|
||||
|
||||
|
Reference in New Issue
Block a user