Skip to content

Commit

Permalink
Add ability to drag files into Tray to open Alchemy
Browse files Browse the repository at this point in the history
* On window blur Alchemy is minimized
  • Loading branch information
ericadamski committed May 31, 2018
1 parent de74ff3 commit af0106c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ const mb = menubar({
mb.on('ready', () => {
console.log('App started in menu bar.')
configure(mb)

mb.tray.on('drag-enter', () => mb.showWindow())
})

mb.on('focus-lost', () => mb.hideWindow());

ipcMain.on('APP_PATH_REQUEST', (event) => {
event.sender.send('APP_PATH_REPLY', mb.app.getAppPath())
})

0 comments on commit af0106c

Please sign in to comment.