@@ -1038,15 +1038,15 @@ function finishBreak (shouldPlaySound = true, shouldPlanNext = true) {
10381038 updateTray ( )
10391039}
10401040
1041- function postponeMicrobreak ( shouldPlaySound = false ) {
1042- microbreakWins = breakComplete ( shouldPlaySound , microbreakWins )
1041+ function postponeMicrobreak ( ) {
1042+ microbreakWins = breakComplete ( false , microbreakWins , 'mini' )
10431043 breakPlanner . postponeCurrentBreak ( )
10441044 log . info ( 'Stretchly: postponing Mini Break' )
10451045 updateTray ( )
10461046}
10471047
1048- function postponeBreak ( shouldPlaySound = false ) {
1049- breakWins = breakComplete ( shouldPlaySound , breakWins )
1048+ function postponeBreak ( ) {
1049+ breakWins = breakComplete ( false , breakWins , 'long' )
10501050 breakPlanner . postponeCurrentBreak ( )
10511051 log . info ( 'Stretchly: postponing Long Break' )
10521052 updateTray ( )
@@ -1418,11 +1418,11 @@ function showNotification (text) {
14181418 )
14191419}
14201420
1421- ipcMain . on ( 'postpone-mini-break' , function ( event , shouldPlaySound ) {
1421+ ipcMain . on ( 'postpone-mini-break' , function ( event ) {
14221422 postponeMicrobreak ( )
14231423} )
14241424
1425- ipcMain . on ( 'postpone-long-break' , function ( event , shouldPlaySound ) {
1425+ ipcMain . on ( 'postpone-long-break' , function ( event ) {
14261426 postponeBreak ( )
14271427} )
14281428
0 commit comments