mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-01-29 06:10:51 +00:00
fix: add check to see if library is loaded in filter_items (#547)
* Added a check to see if the library is loaded in filter_items * Returned check to see if there is an engine --------- Co-authored-by: gred <gred25@yandex.ru>
This commit is contained in:
@@ -1115,6 +1115,9 @@ class QtDriver(DriverMixin, QObject):
|
||||
self.item_thumbs[grid_idx].refresh_badge(entry)
|
||||
|
||||
def filter_items(self, filter: FilterState | None = None) -> None:
|
||||
if not self.lib.library_dir:
|
||||
logger.info("Library not loaded")
|
||||
return
|
||||
assert self.lib.engine
|
||||
|
||||
if filter:
|
||||
|
||||
Reference in New Issue
Block a user