mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #769 from ynput/bugfix/safe-cache-of-icon
UI Icons: Cache key is safely generated
This commit is contained in:
commit
be6060b8ea
1 changed files with 4 additions and 1 deletions
|
|
@ -485,7 +485,10 @@ class _IconsCache:
|
|||
parts = [icon_type, icon_def["path"]]
|
||||
|
||||
elif icon_type in {"awesome-font", "material-symbols"}:
|
||||
parts = [icon_type, icon_def["name"], icon_def["color"]]
|
||||
color = icon_def["color"] or ""
|
||||
if isinstance(color, QtGui.QColor):
|
||||
color = color.name()
|
||||
parts = [icon_type, icon_def["name"] or "", color]
|
||||
return "|".join(parts)
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue