Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed breaks not being called and two other problems #564

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

adventuretc
Copy link

Hi,
The title and the commit messages should say it all.
Kindly, merge the changes.

Copy link
Collaborator

@deltragon deltragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two nits on two of the commits - however the commit 0e2a131 is not correct.
If 0e2a131 is dropped, and the nits are fixed, this can be merged IMO.

safeeyes/plugins/mediacontrol/plugin.py Outdated Show resolved Hide resolved
safeeyes/plugins/smartpause/plugin.py Outdated Show resolved Hide resolved
safeeyes/plugins/healthstats/plugin.py Outdated Show resolved Hide resolved
@adventuretc
Copy link
Author

There you go.

@@ -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')
disable_safeeyes(info, True)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this still doesn't work for me - now it fails with
TypeError: SafeEyes.__init__.<locals>.<lambda>() takes 1 positional argument but 2 were given
I guess the is_resting parameter has to be passed along in the lambda in safeeyes/safeeyes.py:74 as well:

self.context['api']['disable_safeeyes'] = lambda status: utility.execute_main_thread(
self.disable_safeeyes, status)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, looks like it.

@nifadyev nifadyev added the fix Pull request to fix a bug label Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull request to fix a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants