@@ -56,7 +56,7 @@ var handleStartupEvent = function () {
5656 return false
5757 }
5858
59- var squirrelCommand = process . argv [ 1 ] ;
59+ var squirrelCommand = process . argv [ 1 ]
6060 switch ( squirrelCommand ) {
6161 case '--squirrel-install' :
6262 spawnUpdate ( [ '--createShortcut' , exeName ] , function ( err ) {
@@ -228,8 +228,24 @@ app.on('ready', function () {
228228 } )
229229
230230 var template = require ( './atom-lib/menu-template' )
231+ if ( process . platform === 'win32' ) {
232+ template . unshift ( {
233+ label : 'Boostnote' ,
234+ submenu : [
235+ {
236+ label : 'Quit' ,
237+ accelerator : 'Control+Q' ,
238+ click : function ( e ) {
239+ quitApp ( )
240+ }
241+ }
242+ ]
243+ } )
244+ }
231245 var menu = Menu . buildFromTemplate ( template )
232- Menu . setApplicationMenu ( menu )
246+ if ( process . platform === 'darwin' ) {
247+ Menu . setApplicationMenu ( menu )
248+ }
233249
234250 if ( process . platform === 'darwin' ) {
235251 setInterval ( function ( ) {
@@ -268,6 +284,9 @@ app.on('ready', function () {
268284 }
269285
270286 mainWindow = require ( './atom-lib/main-window' )
287+ if ( process . platform === 'win32' ) {
288+ mainWindow . setMenu ( menu )
289+ }
271290 mainWindow . on ( 'close' , function ( e ) {
272291 if ( appQuit ) return true
273292 e . preventDefault ( )
0 commit comments