mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
moved refreshed signal connection to initialization
This commit is contained in:
parent
7da2e7568e
commit
102f8bcf59
1 changed files with 1 additions and 3 deletions
|
|
@ -186,6 +186,7 @@ class AssetsPanel(QtWidgets.QWidget):
|
|||
# signals
|
||||
project_bar.project_changed.connect(self.on_project_changed)
|
||||
assets_widget.selection_changed.connect(self.on_asset_changed)
|
||||
assets_widget.refreshed.connect(self.on_asset_changed)
|
||||
btn_back.clicked.connect(self.back_clicked)
|
||||
|
||||
# Force initial refresh for the assets since we might not be
|
||||
|
|
@ -206,9 +207,6 @@ class AssetsPanel(QtWidgets.QWidget):
|
|||
self.dbcon.Session["AVALON_PROJECT"] = project_name
|
||||
self.assets_widget.refresh()
|
||||
|
||||
# Force asset change callback to ensure tasks are correctly reset
|
||||
self.assets_widget.refreshed.connect(self.on_asset_changed)
|
||||
|
||||
def on_asset_changed(self):
|
||||
"""Callback on asset selection changed
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue