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

Fix warning color only displayed if last instance has a warning #115

Merged
merged 2 commits into from
Nov 19, 2020

Conversation

jboisvertrodeofx
Copy link
Contributor

This is a fix for a bug where the warning color is not displayed next to plugins in which a warning was logged for some instances but not the last executed one.

When logging a warning in an InstancePlugin, the UI reacts by coloring the little square as orange next to the plugin's label. However, this behavior only works if the last instance to be executed has a warning logged. If there are 3 instances and a warning is logged only for the first instance, then the little square will be displayed as green, as if there was no warning at all.

The fix is to simply check in the model's hasWarning data to see if a warning was previously set, and if so, then keep it that way.

@mottosso
Copy link
Member

Nice find @jboisvertrodeofx, this looks good to me.

The latest release is currently a pre-release due to some fixes to the processing behavior (#113) so for at least a few more days whilst it is being tested I'll continue to release Lite as pre-release.

If you update the version to this PR (I didn't have access to do so myself) to VERSION_BETA = "b2" then I can make a new release.

@jboisvertrodeofx
Copy link
Contributor Author

@mottosso thanks for the quick reply! I've set the version to VERSION_BETA = "b2".

@mottosso mottosso merged commit 5bea1c0 into pyblish:master Nov 19, 2020
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.

2 participants