Skip to content

fix: can't re-enable a monitor (#137)#155

Open
deviantintegral wants to merge 1 commit into
jakehilborn:masterfrom
deviantintegral:fix-enable
Open

fix: can't re-enable a monitor (#137)#155
deviantintegral wants to merge 1 commit into
jakehilborn:masterfrom
deviantintegral:fix-enable

Conversation

@deviantintegral
Copy link
Copy Markdown

This ports in the logic from the Python example shared at #137 (comment)

It supports two scenarios:

  1. The user passed in a UUID that doesn't exist, so we loop over 10 screens to try to turn them on.
  2. The user passed in a numeric index, in which case we can call it directly. But, that may still not work for a variety of reasons, so we fall back to the 10-index loop if needed.

Refs: #137

This ports in the logic from the Python example shared at
jakehilborn#137 (comment)

It supports two scenarios:

  1. The user passed in a UUID that doesn't exist, so we loop over 10
     screens to try to turn them on.
  2. The user passed in a numeric index, in which case we can call it
     directly. But, that may still not work for a variety of reasons, so
     we fall back to the 10-index loop if needed.

Refs: jakehilborn#137
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

Successfully merging this pull request may close these issues.

1 participant