From 0e2a13110f62479a65b6759d53138c3f3805a81f Mon Sep 17 00:00:00 2001 From: adventuretc Date: Fri, 19 Jan 2024 18:35:26 +0100 Subject: [PATCH] Fixed smartpause plugin not working. --- safeeyes/plugins/smartpause/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/safeeyes/plugins/smartpause/plugin.py b/safeeyes/plugins/smartpause/plugin.py index 296fe51..d43ace7 100644 --- a/safeeyes/plugins/smartpause/plugin.py +++ b/safeeyes/plugins/smartpause/plugin.py @@ -194,7 +194,8 @@ def __start_idle_monitor(): smart_pause_activated = True idle_start_time = datetime.datetime.now() - datetime.timedelta(seconds=system_idle_time) logging.info('Pause Safe Eyes due to system idle') - disable_safeeyes(None, True) + info = _('Paused Safe Eyes due to system being idle') + self.disable_safeeyes(info) elif system_idle_time < idle_time and context['state'] == State.RESTING and idle_start_time is not None: logging.info('Resume Safe Eyes due to user activity') smart_pause_activated = False