[gnome-shell/T27795: 32/138] taskbar: Disable notifications when pinning and unpinning apps
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/T27795: 32/138] taskbar: Disable notifications when pinning and unpinning apps
- Date: Tue, 1 Oct 2019 23:32:01 +0000 (UTC)
commit 354dd07d08fde38888127b13a85fda4641812370
Author: Mario Sanchez Prada <mario endlessm com>
Date: Tue May 2 14:41:29 2017 +0100
taskbar: Disable notifications when pinning and unpinning apps
Adding/removing favorite apps in the dash gets the shell to emit a
notification to the user, which is very useful to undo the action
in case it was done by mistake.
However, we don't want this feature in Endless, so disable it.
js/ui/appFavorites.js | 24 ++----------------------
1 file changed, 2 insertions(+), 22 deletions(-)
---
diff --git a/js/ui/appFavorites.js b/js/ui/appFavorites.js
index cac84a0053..d0f58f3925 100644
--- a/js/ui/appFavorites.js
+++ b/js/ui/appFavorites.js
@@ -151,16 +151,7 @@ class AppFavorites {
}
addFavoriteAtPos(appId, pos) {
- if (!this._addFavorite(appId, pos))
- return;
-
- let app = Shell.AppSystem.get_default().lookup_app(appId);
-
- let msg = _("%s has been added to your favorites.").format(app.get_name());
- Main.overview.setMessage(msg, {
- forFeedback: true,
- undoCallback: () => this._removeFavorite(appId),
- });
+ this._addFavorite(appId, pos)
}
addFavorite(appId) {
@@ -182,18 +173,7 @@ class AppFavorites {
}
removeFavorite(appId) {
- let ids = this._getIds();
- let pos = ids.indexOf(appId);
-
- let app = this._favorites[appId];
- if (!this._removeFavorite(appId))
- return;
-
- let msg = _("%s has been removed from your favorites.").format(app.get_name());
- Main.overview.setMessage(msg, {
- forFeedback: true,
- undoCallback: () => this._addFavorite(appId, pos),
- });
+ this._removeFavorite(appId);
}
}
Signals.addSignalMethods(AppFavorites.prototype);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]