mirror of
https://github.com/slgobinath/SafeEyes.git
synced 2024-12-23 23:41:20 +01:00
Reset the state during stop
This commit is contained in:
parent
30efe0095b
commit
0f275f8179
@ -157,6 +157,11 @@ class SafeEyesCore:
|
||||
Stop Safe Eyes
|
||||
"""
|
||||
def stop(self):
|
||||
# Reset the state properties in case of restart
|
||||
self.break_count = 0
|
||||
self.long_break_message_index = -1
|
||||
self.short_break_message_index = -1
|
||||
|
||||
self.notification_condition.acquire()
|
||||
self.active = False
|
||||
self.notification_condition.notify()
|
||||
|
@ -31,7 +31,7 @@
|
||||
"interval_between_two_breaks": "Interval between two breaks",
|
||||
"no_of_short_breaks_between_two_long_breaks": "Number of short breaks between two long breaks",
|
||||
"time_to_prepare_for_break": "Time to prepare for break (in seconds)",
|
||||
"strict_break": "Strict break (Hide {skip} button)",
|
||||
"strict_break": "Strict break (Hide skip button)",
|
||||
"enable": "Enable Safe Eyes",
|
||||
"settings": "Settings",
|
||||
"quit": "Quit",
|
||||
|
Loading…
Reference in New Issue
Block a user