Skip to content

Commit

Permalink
Merge pull request #35 from ericadamski/master
Browse files Browse the repository at this point in the history
Add ability to drag files into Tray to open Alchemy
  • Loading branch information
Michael Fix authored May 31, 2018
2 parents de74ff3 + af0106c commit f66a1b9
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 f66a1b9

Please # to comment.