From fa8c21e16c12e05fac3bf684e6f4d738548d1a39 Mon Sep 17 00:00:00 2001 From: isark Date: Wed, 27 Mar 2024 18:24:59 +0100 Subject: [PATCH] Fixed 'resume' (start) on non-played plans --- src-tauri/tauri.conf.json | 2 +- src/app/_services/time-tracker.service.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 11d0978..07cd154 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "Nothing", - "version": "1.8.7" + "version": "1.8.8" }, "tauri": { "systemTray": { diff --git a/src/app/_services/time-tracker.service.ts b/src/app/_services/time-tracker.service.ts index fd1cb67..a729a51 100644 --- a/src/app/_services/time-tracker.service.ts +++ b/src/app/_services/time-tracker.service.ts @@ -160,6 +160,7 @@ export class TimeTrackerService { } else { this.setCurrentRunHistory(this.createNew(plan.name)); this.currentRunHistory!.plan = plan; + this.resumeOnNext = true; } } @@ -256,7 +257,6 @@ export class TimeTrackerService { } public stop() { - console.log("Stopping stopwatch"); if (this.timerSubscription && !this.timerSubscription.closed) this.timerSubscription.unsubscribe(); if (this.debouncedSaveStopwatch && !this.debouncedSaveStopwatch.closed) this.debouncedSaveStopwatch.unsubscribe(); @@ -334,6 +334,7 @@ export class TimeTrackerService { break; case Resume.Discard: this.setCurrentRunHistory(this.createNew(plan.name)); + this.loadReachedCheckpoints(); plan.last_stored_time = this.currentRunHistory!.uuid; this.resumeOnNext = true; plan.requestSelfSave();