From c507dd6d5364b9f6108662c938dbd05fd82c349c Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Sun, 9 Mar 2025 18:54:11 -0400 Subject: [PATCH] Remove donation button from hotkeys number gh-2259 --- src/taskbar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/taskbar.js b/src/taskbar.js index 8003a05..a6b4518 100644 --- a/src/taskbar.js +++ b/src/taskbar.js @@ -63,7 +63,7 @@ let donateDummyApp = { should_show: () => false, list_actions: () => ['opts'], get_action_name: (action) => - action == 'opts' ? _('Donation options') : '', + action == 'opts' ? _('Hide and donation options') : '', }, connect: () => [], disconnect: () => false, @@ -1298,6 +1298,8 @@ export const Taskbar = class extends EventEmitter { if (this.dtpPanel.isPrimary) hotkeyAppNumbers = {} this._getAppIcons().forEach((icon) => { + if (icon.app == this._donateApp) return + if ( this.dtpPanel.isPrimary && (!hotkeyAppNumbers[icon.app] || this.allowSplitApps)