Fix status change during suspend

This commit is contained in:
Gobinath 2017-01-15 07:41:31 +05:30
parent f2403c7c72
commit 5b4e425841
1 changed files with 2 additions and 0 deletions

View File

@ -174,6 +174,7 @@ def save_settings(config):
Listen to tray icon enable action and send the signal to core.
"""
def enable_safeeyes():
global is_active
is_active = True
core.start()
@ -181,6 +182,7 @@ def enable_safeeyes():
Listen to tray icon disable action and send the signal to core.
"""
def disable_safeeyes():
global is_active
is_active = False
core.stop()