From 4648987399c6ae8fa5dd195012e739da3ad8b00a Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Wed, 14 Aug 2019 16:46:15 +0200 Subject: [PATCH] on signing to clockify check timers manager if is running any timer --- pype/clockify/clockify.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pype/clockify/clockify.py b/pype/clockify/clockify.py index 774b0e9ff6..fbb0a378a8 100644 --- a/pype/clockify/clockify.py +++ b/pype/clockify/clockify.py @@ -142,6 +142,17 @@ class ClockifyModule: self.timer_stopped() self.bool_timer_run = False + def signed_in(self): + if hasattr(self, 'timer_manager'): + if not self.timer_manager: + return + + if not self.timer_manager.last_task: + return + + if self.timer_manager.is_running: + self.start_timer_manager(self.timer_manager.last_task) + def start_timer(self, input_data): # If not api key is not entered then skip if not self.clockapi.get_api_key():