id and Icon inheritance? #1189
-
Code: https://github.com/Bierchermuesli/albert-icon-test/blob/main/__init__.py |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
What do you expect? Ids are used to cache the icon and sort items. |
Beta Was this translation helpful? Give feedback.
-
I expect different Icon on each item. each item has a different icon attribute. afaik the behavior was different with 0.4. So I should assign the same IDs for the same kind of items? |
Beta Was this translation helpful? Give feedback.
-
That's up to the semantic of the item. Is it represents the same thing it should have the same ID. Yes this behavior changed since iconlookup moved to the core. Assume you have several iconspecs and only the last one is a hit. each Ui Update still would looked up the misses until it reaches the cache hit if the key would be the icon spec. That's why I used the id |
Beta Was this translation helpful? Give feedback.
That's up to the semantic of the item. Is it represents the same thing it should have the same ID. Yes this behavior changed since iconlookup moved to the core. Assume you have several iconspecs and only the last one is a hit. each Ui Update still would looked up the misses until it reaches the cache hit if the key would be the icon spec. That's why I used the id