Files
booksprite/plugins/coverimage.koplugin
Min S. Kim ccd0a8004c fix(coverimage): fix operator precedence and parameter usage in cache functions (#15032)
Fix two bugs in the coverimage plugin:

1. cleanCache(): Fix operator precedence in while loop condition. In Lua,
   `and` has higher precedence than `or`, so the bounds check `index <= #files`
   was only applied to the cache size condition, not the file count condition.
   Added parentheses to ensure the bounds check applies to both conditions.

2. getCacheFiles(): Use the function parameters `cache_path` and `cache_prefix`
   consistently instead of mixing them with `self.cover_image_cache_path` and
   `self.cover_image_cache_prefix`.
2026-02-23 22:49:02 +01:00
..