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

Prevent disabling the screensaver #60

Open
vincentbernat opened this issue Apr 1, 2024 · 1 comment
Open

Prevent disabling the screensaver #60

vincentbernat opened this issue Apr 1, 2024 · 1 comment

Comments

@vincentbernat
Copy link

Hey!

I've noticed the screensaver is disabled while playing. This is dangerous as it can prevent screen locking to work properly. I think this can be disabled by removing this piece of code (or making it conditional?):

    PlayerIpc_ipc.on(
      "channel-player-state-update",
      external_lodash_debounce_default()((event, state) => {
        media.setPlayerInfo({ state }),
          state === MediaPlayerState.Playing
            ? powerSave.start()
            : powerSave.stop();
      }, 3e3)
    ),
@jackwalten
Copy link

Quite obviously you do not want your computer to go to sleep when you are listening to music?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants