mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
OP-1906 - fix potential issue when no Site Sync
This commit is contained in:
parent
e983f95c81
commit
dcfc6c4452
1 changed files with 4 additions and 2 deletions
|
|
@ -405,7 +405,8 @@ class LibraryLoaderWindow(QtWidgets.QDialog):
|
|||
self.data["state"]["assetIds"] = asset_ids
|
||||
|
||||
# reset repre list
|
||||
self._repres_widget.set_version_ids([])
|
||||
if self._repres_widget:
|
||||
self._repres_widget.set_version_ids([])
|
||||
|
||||
def _subsetschanged(self):
|
||||
asset_ids = self.data["state"]["assetIds"]
|
||||
|
|
@ -495,7 +496,8 @@ class LibraryLoaderWindow(QtWidgets.QDialog):
|
|||
self._thumbnail_widget.set_thumbnail(thumbnail_docs)
|
||||
|
||||
version_ids = [doc["_id"] for doc in version_docs or []]
|
||||
self._repres_widget.set_version_ids(version_ids)
|
||||
if self._repres_widget:
|
||||
self._repres_widget.set_version_ids(version_ids)
|
||||
|
||||
def _set_context(self, context, refresh=True):
|
||||
"""Set the selection in the interface using a context.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue