mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
reversed instance_toggled new/old value
This commit is contained in:
parent
805ca00991
commit
e547967e1b
2 changed files with 3 additions and 3 deletions
|
|
@ -416,14 +416,14 @@ class Controller(QtCore.QObject):
|
|||
for plugin in self.plugins:
|
||||
del(plugin)
|
||||
|
||||
def _on_instance_toggled(self, instance, new_value, old_value):
|
||||
def _on_instance_toggled(self, instance, old_value, new_value):
|
||||
callbacks = pyblish.api.registered_callbacks().get("instanceToggled")
|
||||
if not callbacks:
|
||||
return
|
||||
|
||||
for callback in callbacks:
|
||||
try:
|
||||
callback(instance, new_value, old_value)
|
||||
callback(instance, old_value, new_value)
|
||||
except Exception:
|
||||
print(
|
||||
"Callback for `instanceToggled` crashed. {}".format(
|
||||
|
|
|
|||
|
|
@ -554,7 +554,7 @@ class Window(QtWidgets.QDialog):
|
|||
instance_item.setData(state, QtCore.Qt.CheckStateRole)
|
||||
|
||||
self.controller.instance_toggled.emit(
|
||||
instance_item.instance, state, current_state
|
||||
instance_item.instance, current_state, state
|
||||
)
|
||||
|
||||
self.update_compatibility()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue