fix "undo remove from favorites"
In GSettings, a change notification is generated immediately from context of the _set() call. In GConf, The "value_changed" signal is emitted whenever the server notifies your client program that a value has changed in the database (100% NOT from context of the _set() call). https://bugzilla.gnome.org/show_bug.cgi?id=624296
This commit is contained in:
parent
ed065fc4ea
commit
13a1175792
@ -100,10 +100,11 @@ AppFavorites.prototype = {
|
||||
},
|
||||
|
||||
removeFavorite: function(appId) {
|
||||
let app = this._favorites[appId];
|
||||
if (!this._removeFavorite(appId))
|
||||
return;
|
||||
|
||||
Main.overview.infoBar.setMessage(_("%s has been removed from your favorites.").format(this._favorites[appId].get_name()),
|
||||
Main.overview.infoBar.setMessage(_("%s has been removed from your favorites.").format(app.get_name()),
|
||||
Lang.bind(this, function () {
|
||||
this._addFavorite(appId);
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user