const menubar = require('menubar')
const { ipcMain } = require('electron')

const configure = require('./src/helpers/configure')

const mb = menubar({
  alwaysOnTop: true,
  resizable: false,
  width: 292,
  height: 344,
  icon: `${__dirname}/img/iconTemplate.png`
})

mb.on('ready', () => {
  console.log('App started in menu bar.')
  configure(mb)
})

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

const menubar = require('menubar')
const { ipcMain } = require('electron')

const configure = require('./src/helpers/configure')

const mb = menubar({
  alwaysOnTop: true,
  resizable: false,
  width: 292,
  height: 344,
  icon: `${__dirname}/img/iconTemplate.png`
})

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())
})

Add ability to drag files into Tray to open Alchemy
Add ability to drag files into Tray to open Alchemy

* On window blur Alchemy is minimized
