Bug fix for issue #40

This commit is contained in:
Gobinath 2017-01-11 21:19:06 +05:30
parent 617963c1ea
commit f2403c7c72
3 changed files with 10 additions and 14 deletions

View File

@ -1,4 +1,6 @@
safeeyes (1.1.1-1) xenial; urgency=medium
safeeyes (1.1.2-1) xenial; urgency=medium
* Bug fix for no breaks after 1st one
* Add about dialog and language selection to Settings dialog

View File

@ -142,7 +142,9 @@ class SafeEyesCore:
# Resume
if self.active:
self.start()
# Schedule the break again
thread = threading.Thread(target=self.scheduler_job)
thread.start()
self.skipped = False
@ -152,20 +154,12 @@ class SafeEyesCore:
def is_long_break(self):
return self.break_count == self.no_of_short_breaks_per_long_break - 1
# User skipped the break using Skip button
"""
User skipped the break using Skip button
"""
def skip_break(self):
self.skipped = True
"""
Reschedule the job
"""
def toggle_active_state(self):
if self.active:
self.stop()
else:
self.start()
"""
Stop Safe Eyes
"""

View File

@ -53,7 +53,7 @@ system_language_directory = os.path.join(bin_directory, "config/lang")
is_active = True
CONFIGURATION_VERSION = 1
SAFE_EYES_VERSION = "1.1.1"
SAFE_EYES_VERSION = "1.1.2"
"""
Listen to tray icon Settings action and send the signal to Settings dialog.