Beispiel #1
0
 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);
   }
 });
Beispiel #2
0
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);
  });
});
Beispiel #3
0
 process.on('closeGulp', function(){
   trayManage.tray.setImage(trayManage.closeIconPath);
 });