Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion avalon/tools/contextmanager/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from app import show
from .app import show
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh wow, this was not already the case? Surprised this hasn't broken in some way already.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Well spotted, and thanks. I'm quite surprised too. But 🥇!


__all__ = ["show"]
10 changes: 1 addition & 9 deletions avalon/tools/projectmanager/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ def __init__(self):
super(TasksModel, self).__init__()
self._num_assets = 0
self._icons = {
"__default__": awesome.icon("fa.folder-o",
color=style.colors.default)
"__default__": awesome.icon("fa.male", color=style.colors.default)
}

self._get_task_icons()
Expand Down Expand Up @@ -229,13 +228,6 @@ def set_assets(self, asset_ids):
asset_tasks = asset.get("data", {}).get("tasks", [])
tasks.update(asset_tasks)

# If no asset tasks are defined, use the project tasks.
if assets and not tasks:
project = io.find_one({"type": "project"})
tasks.update(
[task["name"] for task in project["config"].get("tasks", [])]
)

self.clear()
self.beginResetModel()

Expand Down