Skip to content

Commit

Permalink
Merge pull request #118 from makfe/add_icon_visibility_for_always_ena…
Browse files Browse the repository at this point in the history
…bled_actions

Add icon visibility for actions enabled on "all"
  • Loading branch information
mottosso committed Jan 5, 2021
2 parents ee44812 + d493582 commit ce104d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyblish_lite/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ def data(self, index, role):

# Context specific actions
for action in actions:
if action.on == "all":
return True
if action.on == "failed" and item._has_failed:
return True
if action.on == "warning" and item._has_warning:
Expand Down

0 comments on commit ce104d8

Please sign in to comment.