mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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:
parent
6fbe765636
commit
e26a6ea71b
2 changed files with 7 additions and 4 deletions
|
|
@ -14,15 +14,15 @@ const AppFavorites = new Lang.Class({
|
|||
_init: function() {
|
||||
this._favorites = {};
|
||||
global.settings.connect('changed::' + this.FAVORITE_APPS_KEY, Lang.bind(this, this._onFavsChanged));
|
||||
this._reload();
|
||||
this.reload();
|
||||
},
|
||||
|
||||
_onFavsChanged: function() {
|
||||
this._reload();
|
||||
this.reload();
|
||||
this.emit('changed');
|
||||
},
|
||||
|
||||
_reload: function() {
|
||||
reload: function() {
|
||||
let ids = global.settings.get_strv(this.FAVORITE_APPS_KEY);
|
||||
let appSys = Shell.AppSystem.get_default();
|
||||
let apps = ids.map(function (id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue