mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Fix displaying HeroVersionType in version delegate
This commit is contained in:
parent
11f5d9d571
commit
44641bc630
1 changed files with 1 additions and 0 deletions
|
|
@ -123,6 +123,7 @@ def paint_image_with_color(image, color):
|
|||
|
||||
def format_version(value):
|
||||
"""Formats integer to displayable version name"""
|
||||
value = int(value) # convert e.g. HeroVersionType to its version value
|
||||
label = "v{0:03d}".format(abs(value))
|
||||
if value < 0:
|
||||
return "[{}]".format(label)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue