|
|
|
@ -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();
|
|
|
|
|