File tree Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 22const electron = require ( 'electron' ) ;
33const app = electron . app ; // Module to control application life.
44
5+ require ( 'electron-debug' ) ( {
6+ showDevTools : false
7+ } ) ;
8+
59const handleSetupEvent = function ( ) {
610 if ( process . argv . length === 1 ) {
711 return false ;
@@ -83,25 +87,12 @@ updater.check((err, status) => {
8387 updater . download ( ) ;
8488 }
8589} ) ;
86- // When an update has been downloaded
87- updater . on ( 'update-downloaded' , ( info ) => {
88- // Restart the app and install the update
89- downloadedUpdate = true ;
90- } ) ;
91-
9290
9391// Quit when all windows are closed.
9492app . on ( 'window-all-closed' , function ( ) {
95- if ( downloadedUpdate ) {
96- updater . install ( ) ;
97- } else {
98- app . quit ( ) ;
99- }
93+ app . quit ( ) ;
10094} ) ;
10195
102- require ( 'electron-debug' ) ( {
103- showDevTools : false
104- } ) ;
10596
10697let mainWindow ;
10798// This method will be called when Electron has finished
Original file line number Diff line number Diff line change 11{
2- "version" : " 1.0.2 " ,
2+ "version" : " 1.0.3 " ,
33 "dependencies" : {
44 "grunt" : " ^0.4.5" ,
55 "grunt-contrib-clean" : " ^0.7.0" ,
You can’t perform that action at this time.
0 commit comments