Skip to content

Commit

Permalink
Bug fix for issue #40
Browse files Browse the repository at this point in the history
  • Loading branch information
slgobinath committed Jan 11, 2017
1 parent 617963c commit f2403c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
4 changes: 3 additions & 1 deletion safeeyes/debian/changelog
Original file line number Diff line number Diff line change
@@ -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

Expand Down
18 changes: 6 additions & 12 deletions safeeyes/safeeyes/SafeEyesCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ def notify_and_start_break(self):

# Resume
if self.active:
self.start()
# Schedule the break again
thread = threading.Thread(target=self.scheduler_job)
thread.start()

self.skipped = False

Expand All @@ -152,19 +154,11 @@ def notify_and_start_break(self):
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
def skip_break(self):
self.skipped = True

"""
Reschedule the job
User skipped the break using Skip button
"""
def toggle_active_state(self):
if self.active:
self.stop()

else:
self.start()
def skip_break(self):
self.skipped = True

"""
Stop Safe Eyes
Expand Down
2 changes: 1 addition & 1 deletion safeeyes/safeeyes/safeeyes
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f2403c7

Please sign in to comment.