Skip to content
Open
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
14 changes: 7 additions & 7 deletions python/tk_multi_loader/loader_action_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
# agreement to the Shotgun Pipeline Toolkit Source Code License. All rights
# not expressly granted therein are reserved by Shotgun Software Inc.

import sgtk
import functools
import os
import sys

import sgtk
from sgtk.platform.qt import QtCore, QtGui
from sgtk.util import login

Expand Down Expand Up @@ -100,10 +102,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
)
functools.partial(self._execute_hook, qt_action=a, actions=actions)
)

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

Expand Down Expand Up @@ -185,10 +186,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
)
functools.partial(self._execute_hook, qt_action=a, actions=actions)
)

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

Expand Down