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 e12d480 commit 97956b9Copy full SHA for 97956b9
app/main/lib/breaks.ts
@@ -167,6 +167,7 @@ export function endPopupBreak(): void {
167
const existingBreakTime = breakTime;
168
const now = moment();
169
havingBreak = false;
170
+ startedFromTray = false;
171
172
// If there's no future break scheduled, create a normal break
173
if (!existingBreakTime || existingBreakTime <= now) {
@@ -320,9 +321,7 @@ export function startBreakNow(): void {
320
321
}
322
323
export function wasStartedFromTray(): boolean {
- const result = startedFromTray;
324
- startedFromTray = false; // Reset the flag after checking
325
- return result;
+ return startedFromTray;
326
327
328
function tick(): void {
0 commit comments