fix: pauses not resetting
This commit is contained in:
parent
61b7bd447d
commit
56beda6840
1 changed files with 7 additions and 2 deletions
|
@ -78,8 +78,13 @@ impl Pomodoro {
|
||||||
};
|
};
|
||||||
self.status = match self.status {
|
self.status = match self.status {
|
||||||
Status::Working => {
|
Status::Working => {
|
||||||
self.pauses += 1;
|
if self.pauses == self.pauses_till_long {
|
||||||
Status::Pausing
|
self.pauses = 0;
|
||||||
|
Status::LongPause
|
||||||
|
} else {
|
||||||
|
self.pauses += 1;
|
||||||
|
Status::Pausing
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_ => Status::Working,
|
_ => Status::Working,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue