mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Support ILoadHost hosts
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
d5cb828edc
commit
d84b175efb
1 changed files with 5 additions and 0 deletions
|
|
@ -569,6 +569,11 @@ class SubsetsModel(TreeModel, BaseRepresentationModel):
|
|||
if self._host:
|
||||
time_since_refresh = time.time() - self._host_loaded_refresh_time
|
||||
if time_since_refresh > self._host_loaded_refresh_timeout:
|
||||
if isinstance(self._host, ILoadHost):
|
||||
containers = self._host.get_containers()
|
||||
else:
|
||||
containers = self._host.ls()
|
||||
|
||||
repre_ids = {con.get("representation")
|
||||
for con in self._host.ls()}
|
||||
self._loaded_representation_ids = repre_ids
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue