Skip to content

Commit

Permalink
Add icon visibility for action enabled on "all"
Browse files Browse the repository at this point in the history
  • Loading branch information
mark feller committed Jan 4, 2021
1 parent ee44812 commit d493582
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 d493582

Please sign in to comment.