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:
Maxim Ermilov 2010-07-14 05:32:41 +04:00
parent ed065fc4ea
commit 13a1175792

View File

@ -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);
}));