@@ -316,16 +316,15 @@ function startI18next () {
316316 . init ( {
317317 lng : settings . get ( 'language' ) ,
318318 fallbackLng : 'en' ,
319- debug : false , //! app.isPackaged,
319+ debug : ! app . isPackaged ,
320320 backend : {
321321 loadPath : join ( __dirname , '/locales/{{lng}}.json' ) ,
322322 jsonIndent : 2
323323 }
324324 } , function ( err , t ) {
325325 if ( err ) {
326- console . log ( err . stack )
326+ log . error ( err . stack )
327327 }
328- updateTray ( )
329328 } )
330329}
331330
@@ -382,8 +381,8 @@ function closeWindows (windowArray) {
382381 for ( const window of windowArray ) {
383382 window . hide ( )
384383 if ( windowArray [ 0 ] === window ) {
385- ipcMain . removeHandler ( 'send-break-data' )
386- ipcMain . removeHandler ( 'send-microbreak -data' )
384+ ipcMain . removeHandler ( 'send-long- break-data' )
385+ ipcMain . removeHandler ( 'send-mini-break -data' )
387386 }
388387 window . close ( )
389388 }
@@ -721,7 +720,7 @@ function startMicrobreak () {
721720 processWin . webContents . send ( 'play-sound' , settings . get ( 'miniBreakAudio' ) , settings . get ( 'volume' ) )
722721 }
723722
724- ipcMain . handle ( 'send-microbreak -data' , ( event ) => {
723+ ipcMain . handle ( 'send-mini-break -data' , ( event ) => {
725724 const startTime = Date . now ( )
726725 if ( ! strictMode || postponable ) {
727726 if ( settings . get ( 'endBreakShortcut' ) !== '' ) {
@@ -871,7 +870,7 @@ function startBreak () {
871870 processWin . webContents . send ( 'play-sound' , settings . get ( 'audio' ) , settings . get ( 'volume' ) )
872871 }
873872
874- ipcMain . handle ( 'send-break-data' , ( event ) => {
873+ ipcMain . handle ( 'send-long- break-data' , ( event ) => {
875874 const startTime = Date . now ( )
876875 if ( ! strictMode || postponable ) {
877876 if ( settings . get ( 'endBreakShortcut' ) !== '' ) {
@@ -1410,19 +1409,19 @@ function showNotification (text) {
14101409 )
14111410}
14121411
1413- ipcMain . on ( 'postpone-microbreak ' , function ( event , shouldPlaySound ) {
1412+ ipcMain . on ( 'postpone-mini-break ' , function ( event , shouldPlaySound ) {
14141413 postponeMicrobreak ( )
14151414} )
14161415
1417- ipcMain . on ( 'postpone-break' , function ( event , shouldPlaySound ) {
1416+ ipcMain . on ( 'postpone-long- break' , function ( event , shouldPlaySound ) {
14181417 postponeBreak ( )
14191418} )
14201419
1421- ipcMain . on ( 'finish-microbreak ' , function ( event , shouldPlaySound , shouldPlanNext ) {
1420+ ipcMain . on ( 'finish-mini-break ' , function ( event , shouldPlaySound , shouldPlanNext ) {
14221421 finishMicrobreak ( shouldPlaySound , shouldPlanNext )
14231422} )
14241423
1425- ipcMain . on ( 'finish-break' , function ( event , shouldPlaySound , shouldPlanNext ) {
1424+ ipcMain . on ( 'finish-long- break' , function ( event , shouldPlaySound , shouldPlanNext ) {
14261425 finishBreak ( shouldPlaySound , shouldPlanNext )
14271426} )
14281427
@@ -1569,7 +1568,6 @@ ipcMain.on('open-contributor-auth', function (event, provider) {
15691568 myStretchlyWindow = null
15701569 } )
15711570 }
1572- // myStretchlyWindow.webContents.reloadIgnoringCache()
15731571 setTimeout ( ( ) => {
15741572 myStretchlyWindow . center ( )
15751573 } , 0 )
0 commit comments