Skip to content

Conversation

indev29
Copy link
Contributor

@indev29 indev29 commented Apr 4, 2022

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Other: Replace this with a description of the type of this PR

Description

Fixes the issue when output is not cleared after exec-if failed.

Related Issues & Documents

Closes #2674

Documentation (check all applicable)

  • This PR requires changes to the Wiki documentation (describe the changes)
  • This PR requires changes to the documentation inside the git repo (please add them to the PR).
  • Does not require documentation changes

@codecov
Copy link

codecov bot commented Apr 4, 2022

Codecov Report

Merging #2675 (f656b3c) into hotfix/3.6.3 (77d611c) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@               Coverage Diff                @@
##           hotfix/3.6.3    #2675      +/-   ##
================================================
- Coverage         13.77%   13.77%   -0.01%     
================================================
  Files               153      153              
  Lines             11282    11284       +2     
================================================
  Hits               1554     1554              
- Misses             9728     9730       +2     
Flag Coverage Δ
unittests 13.77% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/adapters/script_runner.cpp 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 77d611c...f656b3c. Read the comment docs.

@indev29 indev29 changed the base branch from master to hotfix/3.6.3 April 4, 2022 09:08
@indev29 indev29 changed the base branch from hotfix/3.6.3 to master April 4, 2022 09:08
Copy link
Member

@patrick96 patrick96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 😃

I'm going to retarget the PR to the hotfix/3.6.3 branch so that we can get it into the next hotfix release.

Please also add a changelog entry for this fix.

@@ -47,6 +47,7 @@ script_runner::interval script_runner::process() {

void script_runner::clear_output() {
set_output("");
m_on_update(m_data);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should only update if set_output return true.

@patrick96 patrick96 changed the base branch from master to hotfix/3.6.3 April 4, 2022 09:08
@patrick96 patrick96 force-pushed the 2674-script-clear-output branch from 54873e0 to b489d5e Compare April 4, 2022 09:09
@patrick96
Copy link
Member

Oh, I saw that you tried to retarget the PR at the same time ^^

@indev29 indev29 requested a review from patrick96 April 4, 2022 09:22
@indev29 indev29 force-pushed the 2674-script-clear-output branch from 5b70ce4 to f656b3c Compare April 4, 2022 09:29
Copy link
Member

@patrick96 patrick96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Thanks for the quick fix ;)

@patrick96 patrick96 merged commit 9b28ba7 into polybar:hotfix/3.6.3 Apr 4, 2022
@patrick96 patrick96 added this to the 3.6.3 milestone Apr 4, 2022
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.

[Bug]: exec-if not clearing in new update if condition is not met
2 participants