mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
Show feedback notifications when the user is busy
Notifications that are created in response to direct user actions like "is ready" or "'foo' has been removed from favorites" should always be displayed even though the user has marked him/herself busy. https://bugzilla.gnome.org/show_bug.cgi?id=662900
This commit is contained in:
parent
1397c7c624
commit
39d9838cc1
4 changed files with 38 additions and 14 deletions
|
|
@ -84,9 +84,12 @@ const AppFavorites = new Lang.Class({
|
|||
|
||||
let app = Shell.AppSystem.get_default().lookup_app(appId);
|
||||
|
||||
Main.overview.setMessage(_("%s has been added to your favorites.").format(app.get_name()), Lang.bind(this, function () {
|
||||
this._removeFavorite(appId);
|
||||
}));
|
||||
Main.overview.setMessage(_("%s has been added to your favorites.").format(app.get_name()),
|
||||
{ forFeedback: true,
|
||||
undoCallback: Lang.bind(this, function () {
|
||||
this._removeFavorite(appId);
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
addFavorite: function(appId) {
|
||||
|
|
@ -116,9 +119,11 @@ const AppFavorites = new Lang.Class({
|
|||
return;
|
||||
|
||||
Main.overview.setMessage(_("%s has been removed from your favorites.").format(app.get_name()),
|
||||
Lang.bind(this, function () {
|
||||
this._addFavorite(appId, pos);
|
||||
}));
|
||||
{ forFeedback: true,
|
||||
undoCallback: Lang.bind(this, function () {
|
||||
this._addFavorite(appId, pos);
|
||||
})
|
||||
});
|
||||
}
|
||||
});
|
||||
Signals.addSignalMethods(AppFavorites.prototype);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue