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 icon visibility for actions enabled on "all" #118

Conversation

makfe
Copy link

@makfe makfe commented Jan 4, 2021

This fixes issue #84.
Icons for actions enabled on = "all" are made visible.

As commented in the issue, the bug might have been introduced here 3c86cd6#diff-4e27d04248feb2897be1066c5a0234cb332f4a7029aa1d33255b9c5f75837e72L231
as before the icons visibility was on by default.

I was hesitant to change the default visibility, because I found it hard to test for all the possibilities.
Because of that, I explicitly added visibility for the on "all" actions.

Please let me know what you think.

@mottosso
Copy link
Member

mottosso commented Jan 5, 2021

Thanks for this @makfe, could you include a gif of what this looks like? It will be useful for the release notes.

@@ -224,6 +224,8 @@ def data(self, index, role):

# Context specific actions
for action in actions:
if action.on == "all":
Copy link
Member

Choose a reason for hiding this comment

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

Looks simple enough, I wonder why this wasn't already the case. :O Nice find.

@makfe
Copy link
Author

makfe commented Jan 5, 2021

pyblish_lite_actions_visibility_01

@mottosso Thank you for your reply :) I have tried to keep the gif as simple as possible. Let me know if that will work.

@mottosso
Copy link
Member

mottosso commented Jan 5, 2021

That's great. :) Keeping it small is always the hardest thing.

I think this looks good, great work!

@mottosso mottosso merged commit ce104d8 into pyblish:master Jan 5, 2021
@makfe makfe deleted the add_icon_visibility_for_always_enabled_actions branch January 5, 2021 11:07
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