Skip to content
Merged
Changes from 2 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
17 changes: 7 additions & 10 deletions python/tk_multi_loader/loader_action_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import sgtk
import os
import sys
from functools import partial
from sgtk.platform.qt import QtCore, QtGui
from sgtk.util import login

Expand Down Expand Up @@ -99,11 +100,9 @@ def get_actions_for_publishes(self, sg_data_list, ui_area):
]

# Bind all the action params to a single invocation of the _execute_hook.
a.triggered[()].connect(
lambda qt_action=a, actions=actions: self._execute_hook(
qt_action, actions
)
)
handler = partial(self._execute_hook, qt_action=a, actions=actions)
a.triggered[()].connect(handler)

a.setData(actions)
qt_actions.append(a)

Expand Down Expand Up @@ -184,11 +183,9 @@ def get_actions_for_folder(self, sg_data):
]

# Bind all the action params to a single invocation of the _execute_hook.
a.triggered[()].connect(
lambda qt_action=a, actions=actions: self._execute_hook(
qt_action, actions
)
)
handler = partial(self._execute_hook, qt_action=a, actions=actions)
a.triggered[()].connect(handler)

a.setData(actions)
qt_actions.append(a)

Expand Down