mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Update client/ayon_core/tools/workfiles/widgets/files_widget_workarea.py
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
7cd9ec8a8d
commit
f6411be0c2
1 changed files with 5 additions and 3 deletions
|
|
@ -416,9 +416,11 @@ class WorkAreaFilesWidget(QtWidgets.QWidget):
|
|||
|
||||
# Find the row with latest date modified
|
||||
latest_index = max(
|
||||
(self._proxy_model.index(i, 0) for
|
||||
i in range(self._proxy_model.rowCount())),
|
||||
key=lambda model_index: model_index.date(DATE_MODIFIED_ROLE)
|
||||
(
|
||||
self._proxy_model.index(idx, 0)
|
||||
for idx in range(self._proxy_model.rowCount())
|
||||
),
|
||||
key=lambda model_index: model_index.data(DATE_MODIFIED_ROLE)
|
||||
)
|
||||
|
||||
# Select row of latest modified
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue