From 622b102b50dbee45226b78cb632ce5e59db27629 Mon Sep 17 00:00:00 2001 From: ayoub Date: Wed, 14 Jun 2023 12:20:35 +0100 Subject: [PATCH] fix end bug when saveto path not provided --- polypomo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polypomo b/polypomo index 678aa24..9a1e89b 100755 --- a/polypomo +++ b/polypomo @@ -142,7 +142,8 @@ class Status: if self.status == "work": if self.active: self.active = False - self.save() # save before switching if toggle didn't get called + if self.saveto: + self.save() # save before switching if toggle didn't get called self.status = "break" self.timer = Timer(self.breaktime) elif self.status == "break":