We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e85fc4d commit abc9a0cCopy full SHA for abc9a0c
app/renderer/components/break/break-progress.tsx
@@ -76,12 +76,10 @@ export function BreakProgress({
76
const now = moment();
77
78
if (now > moment(breakEndTime)) {
79
- // Only track and play sounds from primary window
80
- if (isPrimaryWindow) {
81
- const breakDurationMs =
82
- new Date().getTime() - breakStartTime.getTime();
83
- ipcRenderer.invokeCompleteBreakTracking(breakDurationMs);
84
- }
+ // Always track break completion, regardless of which window triggers it
+ const breakDurationMs =
+ new Date().getTime() - breakStartTime.getTime();
+ ipcRenderer.invokeCompleteBreakTracking(breakDurationMs);
85
86
onEndBreak();
87
return;
0 commit comments