Fix bug in smart pause and release new version

This commit is contained in:
Gobinath 2018-02-09 10:09:08 -05:00
parent b580b3cb34
commit 020934aa0f
5 changed files with 5 additions and 5 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
safeeyes (2.0.3-1) xenial; urgency=high
safeeyes (2.0.4-1) xenial; urgency=high
* Fix issues with locales

View File

@ -39,7 +39,7 @@ from safeeyes.settings import SettingsDialog
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
SAFE_EYES_VERSION = "2.0.3"
SAFE_EYES_VERSION = "2.0.4"
class SafeEyes(object):

View File

@ -71,7 +71,7 @@ along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;.</pro
<property name="valign">center</property>
<property name="margin_top">10</property>
<property name="margin_bottom">10</property>
<property name="label" translatable="yes">Safe Eyes 2.0.3</property>
<property name="label" translatable="yes">Safe Eyes 2.0.4</property>
<property name="justify">center</property>
<attributes>
<attribute name="style" value="normal"/>

View File

@ -114,7 +114,7 @@ def __start_idle_monitor():
smart_pause_activated = True
idle_start_time = datetime.datetime.now()
logging.info('Pause Safe Eyes due to system idle')
disable_safe_eyes()
disable_safe_eyes(None)
elif system_idle_time < idle_time and context['state'] == State.STOPPED:
logging.info('Resume Safe Eyes due to user activity')
smart_pause_activated = False

View File

@ -70,7 +70,7 @@ __data_files = list(_data_files('share'))
setuptools.setup(
name="safeeyes",
version="2.0.3",
version="2.0.4",
description="Protect your eyes from eye strain using this continuous breaks reminder.",
long_description=long_description,
author="Gobinath Loganathan",