View Single Post
Old 12-12-2020, 06:30 PM   #904
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,768
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Adding a colon to the end of each filename (e.g. halflife.png:) worked. I'm not sure if that's the proper solution though.
It is correct if you want multiple icons per rule. The colon is used to separate multiple icons for a rule. If you want only one icon then use first_non_empty to pick the first 'contains' that returns a value.

That said, checking the code I note that an empty icon file name, as in your example, isn't handled very efficiently. I will fix that.
chaley is offline   Reply With Quote