Skip to content

Commit 0531079

Browse files
committed
Make visible window on all workspaces
In OS X, gitify is now bound to specific work space where gitify firstly started. When I click the menu icon in other workspace, the window will be opened in the bound work space and current workspace is forced to be changed. I used `BrowserWindow.setVisibleOnAllWorkspaces()` API to solve this issue. https://github.com/atom/electron/blob/master/docs/api/browser-window.md#browserwindowsetvisibleonallworkspacesvisible I think all menu bar application should set this option to true.
1 parent b444e11 commit 0531079

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ app.on('ready', function(){
4242
appIcon.window = new BrowserWindow(defaults);
4343
appIcon.window.loadUrl('file://' + __dirname + '/index.html');
4444
appIcon.window.on('blur', hideWindow);
45+
appIcon.window.setVisibleOnAllWorkspaces(true);
4546

4647
initMenu();
4748
}

0 commit comments

Comments
 (0)