From 2824840b075b322ebd35b9e5a35acbde2bc7945d Mon Sep 17 00:00:00 2001 From: pax Date: Sat, 11 Apr 2026 23:24:35 -0500 Subject: [PATCH] post_actions: refresh bookmarks grid on unsave unsave_from_preview only refreshed the library grid when on the library tab. Now also refreshes the bookmarks grid when on the bookmarks tab so the saved dot clears immediately. --- booru_viewer/gui/post_actions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/booru_viewer/gui/post_actions.py b/booru_viewer/gui/post_actions.py index 6f38758..8f18df5 100644 --- a/booru_viewer/gui/post_actions.py +++ b/booru_viewer/gui/post_actions.py @@ -193,9 +193,12 @@ class PostActionsController: if fav.post_id == post.id and i < len(bm_grid._thumbs): bm_grid._thumbs[i].set_saved_locally(False) break - # Refresh library tab if visible + # Refresh the active tab's grid so the unsaved post disappears + # from library or loses its saved dot on bookmarks. if self._app._stack.currentIndex() == 2: self._app._library_view.refresh() + elif self._app._stack.currentIndex() == 1: + self._app._bookmarks_view.refresh() else: self._app._status.showMessage(f"#{post.id} not in library") self._app._popout_ctrl.update_state()