Skip to content

Commit

Permalink
y
Browse files Browse the repository at this point in the history
  • Loading branch information
Maigo Erit committed May 30, 2016
1 parent 73dd1a8 commit 98ae5f7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
5 changes: 3 additions & 2 deletions app/plugins/main-window/app/settings/settings.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ angular.module('globalServices')
}
return deferred.promise;
}).catch(function () {
return service.create({
service.create({
id: 'RUNNING_LOG_ITEM'
})
});

});
};
service.saveRunningLogItemReferemce = function (logItemId) {
Expand Down
4 changes: 4 additions & 0 deletions app/plugins/tray/app/logItem/logItem.list.controller.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

var ipcRenderer = require("electron").ipcRenderer;

angular.module('trayApp')
.controller('LogItemListController', function (TrackItemService, $rootScope, $scope, SettingsService, $mdToast, $q) {
Expand All @@ -8,6 +9,7 @@ angular.module('trayApp')
ctrl.newItem = {color: '#426DFC'};

SettingsService.getRunningLogItem().then(function (item) {
console.log("Running log item.", item);
ctrl.runningLogItem = item;
});

Expand Down Expand Up @@ -36,6 +38,8 @@ angular.module('trayApp')
});
};

ipc.on('focus-tray', ctrl.list);


ctrl.startNewLogItem = function (oldItem) {
console.log("startNewLogItem");
Expand Down
9 changes: 6 additions & 3 deletions app/tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ var mb = menubar({
preloadWindow: true,
width: 400,
height: 500,
showDock: true
showDock: true,
'show-dock-icon': true
});

mb.on('after-create-window', function () {
//mb.window.openDevTools();
mb.window.openDevTools();
});
mb.on('ready', function () {
mb.on('after-show', function () {
console.log('Show tray');
mb.window.webContents.send('focus-tray', 'ping');
})

module.exports = mb

0 comments on commit 98ae5f7

Please sign in to comment.