From 798ee1efb8ac41c44400e207e1a1fae336ca6a2c Mon Sep 17 00:00:00 2001 From: TheGoddessInari Date: Tue, 12 Mar 2019 12:17:10 -0700 Subject: [PATCH] Notifier: Remove open coding of tab activation. --- app/util/Notifier.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/util/Notifier.js b/app/util/Notifier.js index c0475779..4d530ea4 100644 --- a/app/util/Notifier.js +++ b/app/util/Notifier.js @@ -44,14 +44,13 @@ Ext.define('Rambox.util.Notifier', { var notification = new Notification(view.record.get('name'), { body: text, - icon: view.tab.icon, + icon: view.icon, silent: view.record.get('muted') }); - notification.onclick = function() { - ipc.send('toggleWin', true); - Ext.cq1('app-main').setActiveTab(view); + notification.onclick = function(e) { + view.showWindowAndActivateTab(e); }; - } + }; } });