Skip to content

Commit 878cc3f

Browse files
committed
focus window onclicking tray menus #fixes #183
1 parent eace637 commit 878cc3f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/renderer/js/tray.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ const createTray = function () {
117117
const contextMenu = Menu.buildFromTemplate([{
118118
label: 'About',
119119
click() {
120+
// We need to focus the main window first
121+
ipcRenderer.send('focus-app');
120122
sendAction('open-about');
121123
}
122124
},
@@ -135,6 +137,7 @@ const createTray = function () {
135137
{
136138
label: 'Manage Zulip servers',
137139
click() {
140+
ipcRenderer.send('focus-app');
138141
sendAction('open-settings');
139142
}
140143
},

0 commit comments

Comments
 (0)