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

add hide-empty-text option to hide module whenever output is empty but format is not #3395

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

RobertMueller2
Copy link
Contributor

@RobertMueller2 RobertMueller2 commented Jun 30, 2024

Resolves #3341

Custom module hides empty output, e.g. when a worker returns {} as json. But when using other content in the format, e.g. to add an icon before or after output, it's no longer possible to have the module hidden.

This PR addresses this by adding a config option hide-empty-text, when true, text_ is checked for empty rather than str.

I realise I forgot the manpage, coming up in a second :P

@vikanezrimaya
Copy link

Am the original reporter, tested this on my install, can confirm this resolves my issue.

@Alexays Alexays merged commit 93000e3 into Alexays:master Jul 1, 2024
9 checks passed
@Alexays
Copy link
Owner

Alexays commented Jul 1, 2024

LGTM, thx

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.

Custom modules: ability to hide a module?
3 participants