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:
parent
25cfc50f25
commit
9f636532c0
@ -84,6 +84,7 @@ _DEFAULTS = {
|
||||
"confirm_favorites": "0",
|
||||
"preload_thumbnails": "1",
|
||||
"file_dialog_platform": "qt",
|
||||
"blacklist_enabled": "1",
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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."""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user