mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
simplified pretty time delegate
This commit is contained in:
parent
02e4f239a9
commit
2a9a490105
1 changed files with 3 additions and 6 deletions
|
|
@ -287,9 +287,6 @@ class PrettyTimeDelegate(QtWidgets.QStyledItemDelegate):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def displayText(self, value, locale):
|
def displayText(self, value, locale):
|
||||||
|
if value is not None:
|
||||||
if value is None:
|
return pretty_timestamp(value)
|
||||||
# Ignore None value
|
return None
|
||||||
return
|
|
||||||
|
|
||||||
return pretty_timestamp(value)
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue