mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue