Fix: prioritize more specific previews

This commit is contained in:
Nikita Ivanov 2022-06-12 22:32:15 +05:00
parent bd5dd31aed
commit 9d5c7f144f
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

View File

@ -37,7 +37,7 @@ static int cmp_previews(const void *p1, const void *p2)
return -i;
if ((i = strcmpnull(pr1->subtype, pr2->subtype)) != 0)
return i;
return -i;
if ((i = pr2->priority - pr1->priority) != 0)
return i;