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

toggle block: only toggle if command exited successfully #648

Merged
merged 1 commit into from
May 9, 2020

Conversation

ammgws
Copy link
Collaborator

@ammgws ammgws commented May 9, 2020

Resolves #167

Old behaviour: block would toggle state regardless of whether command_on/command_off exited successfully.

New behaviour: block only toggle states if command_on/command_off exited successfully (non-zero exit status).

I left command_state alone for now.

Future work could make change the colour of the block when command_on/off didn't run successfully, otherwise a user might think the bar is just being unresponsive.

@ammgws ammgws merged commit f461005 into greshake:master May 9, 2020
@ammgws ammgws deleted the toggleblock branch May 9, 2020 12:55
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.

Check if execution was successful in toggle block
1 participant