View Single Post
Old 10-16-2021, 06:40 AM   #182
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: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Question:

Is there a proper way to tell Calibre to not show any icons in a specific column if a book matches a set of specific criteria, even if any following rules do match?
No, there is no 'official' way to stop rule processing without producing an icon.
Quote:
I found that making a non-composed advanced rule pointing to an invalid icon name works, but I'm not sure if I should be concerned about that causing issues.
That works, but it will be slower because calibre will reevaluate the rule for each book then rediscover that the icon doesn't exist every time the icon rule succeeds. If the icon actually exists then it is cached and the rule isn't reevaluated.
Quote:
EDIT: Would using a 1x1 transparent icon (non-composed) work?
Yes, but I think it would be a bit faster to use a 128x128 transparent image. That avoids some internal scaling.

BTW: You can use the same transparent icon when composing to have gaps in the displayed icons.
chaley is offline   Reply With Quote