File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,10 @@ app.on('ready', function(){
6767 }
6868 } ) ;
6969
70+ ipc . on ( 'app-quit' , function ( event ) {
71+ app . quit ( ) ;
72+ } ) ;
73+
7074 app . dock . hide ( ) ;
7175 appIcon . setToolTip ( 'Github Notifications on your menu bar.' ) ;
7276} ) ;
Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ var Navigation = React.createClass({
4848 ipc . sendChannel ( 'update-icon' , "IconPlain" ) ;
4949 } ,
5050
51+ appQuit : function ( ) {
52+ ipc . sendChannel ( 'app-quit' ) ;
53+ } ,
54+
5155 render : function ( ) {
5256 var refreshIcon , logoutIcon ;
5357 var loadingClass = this . state . loading ? 'fa fa-refresh fa-spin' : 'fa fa-refresh' ;
@@ -66,7 +70,10 @@ var Navigation = React.createClass({
6670 < div className = 'row navigation' >
6771 < div className = 'col-xs-4 left' > { refreshIcon } </ div >
6872 < div className = 'col-xs-4 logo' > GitHub</ div >
69- < div className = 'col-xs-4 right' > { logoutIcon } </ div >
73+ < div className = 'col-xs-4 right' >
74+ { logoutIcon }
75+ < i className = "fa fa-power-off" onClick = { this . appQuit } />
76+ </ div >
7077 </ div >
7178 </ div >
7279 ) ;
You can’t perform that action at this time.
0 commit comments