Don't clear preview on blacklist — just re-search

Blacklisting a tag or post no longer clears the preview of an
unrelated post. The search reloads and the blacklisted post
simply disappears from the grid.
This commit is contained in:
pax 2026-04-05 13:05:17 -05:00
parent 396c008e9f
commit e515c19d05

View File

@ -1320,12 +1320,10 @@ class BooruApp(QMainWindow):
tag = action.text()
self._db.add_blacklisted_tag(tag)
self._db.set_setting("blacklist_enabled", "1")
self._preview.clear()
self._status.showMessage(f"Blacklisted: {tag}")
self._do_search()
elif action == bl_post_action:
self._db.add_blacklisted_post(post.file_url)
self._preview.clear()
self._status.showMessage(f"Post #{post.id} blacklisted")
self._do_search()