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

conditional: Screen+Desk is not mutually-exclusive #895

Merged
merged 1 commit into from
Aug 31, 2023
Merged

Conversation

ThomasAdam
Copy link
Member

When a conditional has both screen and desk in, such as:

All (Screen HDMI-1, Desk 0) Echo "$[w.name]"

the previous logiv was to treat those options as mutually exclusive --
hence, one or the other would match, but never both.

This commit fixes this by checking for both conditions if they're
present, otherwise defaulting to treating them separately if only one of
them appears.

Fixes #741

When a conditional has both screen and desk in, such as:

    All (Screen HDMI-1, Desk 0) Echo "$[w.name]"

the previous logiv was to treat those options as mutually exclusive --
hence, one or the other would match, but never both.

This commit fixes this by checking for both conditions if they're
present, otherwise defaulting to treating them separately if only one of
them appears.

Fixes #741
@ThomasAdam ThomasAdam added this to the 1.0.8 milestone Aug 31, 2023
@ThomasAdam ThomasAdam self-assigned this Aug 31, 2023
@ThomasAdam ThomasAdam added the type:bug Something's broken! label Aug 31, 2023
@ThomasAdam ThomasAdam merged commit b454ca0 into main Aug 31, 2023
4 checks passed
@ThomasAdam ThomasAdam deleted the ta/gh-741-2 branch August 31, 2023 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something's broken!
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

conditions: Desk does not take a string
1 participant