Skip to content

Commit ed22d89

Browse files
committed
Never wanna play sound here
1 parent d4f9cef commit ed22d89

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

app/main.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)