mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Fix - removed unnecessary first query
setSortable forces refresh itself
This commit is contained in:
parent
2339e41b4c
commit
688400ad7b
1 changed files with 0 additions and 7 deletions
|
|
@ -523,10 +523,6 @@ class SyncRepresentationSummaryModel(_SyncRepresentationModel):
|
|||
self.query = self.get_query()
|
||||
self.default_query = list(self.get_query())
|
||||
|
||||
representations = self.dbcon.aggregate(pipeline=self.query,
|
||||
allowDiskUse=True)
|
||||
self.refresh(representations)
|
||||
|
||||
self.timer = QtCore.QTimer()
|
||||
self.timer.timeout.connect(self.tick)
|
||||
self.timer.start(self.REFRESH_SEC)
|
||||
|
|
@ -1003,9 +999,6 @@ class SyncRepresentationDetailModel(_SyncRepresentationModel):
|
|||
self.sort_criteria = self.DEFAULT_SORT
|
||||
|
||||
self.query = self.get_query()
|
||||
representations = self.dbcon.aggregate(pipeline=self.query,
|
||||
allowDiskUse=True)
|
||||
self.refresh(representations)
|
||||
|
||||
self.timer = QtCore.QTimer()
|
||||
self.timer.timeout.connect(self.tick)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue