Skip to content

Commit f3a5d12

Browse files
author
Emmanouil Konstantinidis
committed
On logout reset tray icon
1 parent c71a691 commit f3a5d12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ app.on('ready', function(){
5858

5959
function hideWindow () {
6060
if (!appIcon.window) return;
61-
appIcon.emit('hide');
6261
appIcon.window.hide();
63-
appIcon.emit('after-hide');
6462
}
6563

6664
ipc.on('reopen-window', function(event) {

src/js/components/navigation.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var React = require('react');
22
var Reflux = require('Reflux');
3+
var ipc = window.require('ipc');
34

45
var Actions = require('../actions/actions');
56
var AuthStore = require('../stores/auth');
@@ -44,6 +45,7 @@ var Navigation = React.createClass({
4445
logOut: function () {
4546
Actions.logout();
4647
this.context.router.transitionTo('login');
48+
ipc.sendChannel('update-icon', "IconPlain");
4749
},
4850

4951
render: function () {

0 commit comments

Comments
 (0)