process.on('compass', function(type){ if (type === 'starting') { trayManage.tray.setImage(trayManage.compassIconPath); } else if (type === 'error' ) { trayManage.tray.setImage(trayManage.errorIconPath); } else { trayManage.tray.setImage(trayManage.iconPath); } });
app.on('ready', function() { createWindow(); trayManage.tray = new Tray(trayManage.iconPath); trayManage.tray.on('click', () => { mainWindow.restore(); app.focus(); }); process.on('compass', function(type){ if (type === 'starting') { trayManage.tray.setImage(trayManage.compassIconPath); } else if (type === 'error' ) { trayManage.tray.setImage(trayManage.errorIconPath); } else { trayManage.tray.setImage(trayManage.iconPath); } }); process.on('closeGulp', function(){ trayManage.tray.setImage(trayManage.closeIconPath); }); });
process.on('closeGulp', function(){ trayManage.tray.setImage(trayManage.closeIconPath); });