Fix blacklist: enable by default, re-search after blacklisting tag

- blacklist_enabled defaults to "1" so it works out of the box
- Right-click blacklist auto-enables and re-searches immediately
This commit is contained in:
pax 2026-04-04 21:26:43 -05:00
parent 25cfc50f25
commit 9f636532c0
2 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,7 @@ _DEFAULTS = {
"confirm_favorites": "0",
"preload_thumbnails": "1",
"file_dialog_platform": "qt",
"blacklist_enabled": "1",
}

View File

@ -1042,7 +1042,9 @@ class BooruApp(QMainWindow):
elif action.parent() == bl_menu:
tag = action.text()
self._db.add_blacklisted_tag(tag)
self._db.set_setting("blacklist_enabled", "1")
self._status.showMessage(f"Blacklisted: {tag}")
self._do_search()
def _on_multi_context_menu(self, indices: list, pos) -> None:
"""Context menu for multi-selected posts."""