This commit is contained in:
parent
72eb1575d9
commit
6ac8b602bc
|
@ -55,7 +55,6 @@ def init(ctx, safeeyes_config, plugin_config):
|
|||
'total_resets': 0,
|
||||
}
|
||||
|
||||
# session = context['session']['plugin'].get('healthstats', {}) | defaults
|
||||
session = context['session']['plugin'].get('healthstats', {}).copy()
|
||||
session.update(defaults) # refactored to maintain compatibility with python3.8 on Ubuntu 20.04 LTS (dict | dict syntax was introduced in python3.9).
|
||||
if 'no_of_breaks' in session:
|
||||
|
|
|
@ -30,10 +30,6 @@ from safeeyes.model import TrayAction
|
|||
gi.require_version('Gtk', '3.0')
|
||||
from gi.repository import Gtk
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
tray_icon_path = None
|
||||
|
||||
|
||||
|
|
|
@ -195,7 +195,7 @@ def __start_idle_monitor():
|
|||
idle_start_time = datetime.datetime.now() - datetime.timedelta(seconds=system_idle_time)
|
||||
logging.info('Pause Safe Eyes due to system idle')
|
||||
info = _('Paused Safe Eyes due to system being idle')
|
||||
self.disable_safeeyes(info)
|
||||
disable_safeeyes(info, True)
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue