mirror of
https://github.com/slgobinath/SafeEyes.git
synced 2025-01-19 02:49:51 +01:00
Fix status change during suspend
This commit is contained in:
parent
f2403c7c72
commit
5b4e425841
@ -174,6 +174,7 @@ def save_settings(config):
|
|||||||
Listen to tray icon enable action and send the signal to core.
|
Listen to tray icon enable action and send the signal to core.
|
||||||
"""
|
"""
|
||||||
def enable_safeeyes():
|
def enable_safeeyes():
|
||||||
|
global is_active
|
||||||
is_active = True
|
is_active = True
|
||||||
core.start()
|
core.start()
|
||||||
|
|
||||||
@ -181,6 +182,7 @@ def enable_safeeyes():
|
|||||||
Listen to tray icon disable action and send the signal to core.
|
Listen to tray icon disable action and send the signal to core.
|
||||||
"""
|
"""
|
||||||
def disable_safeeyes():
|
def disable_safeeyes():
|
||||||
|
global is_active
|
||||||
is_active = False
|
is_active = False
|
||||||
core.stop()
|
core.stop()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user