Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
adventuretc committed Jan 27, 2024
1 parent 72eb157 commit 6ac8b60
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion safeeyes/plugins/healthstats/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 0 additions & 4 deletions safeeyes/plugins/mediacontrol/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk





tray_icon_path = None


Expand Down
2 changes: 1 addition & 1 deletion safeeyes/plugins/smartpause/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ac8b60

Please sign in to comment.