From db4348c07706ca6344d83fe90d04d973ef802ed4 Mon Sep 17 00:00:00 2001 From: pax Date: Wed, 15 Apr 2026 17:55:31 -0500 Subject: [PATCH] settings: pair Clear Tag Cache with the other non-destructive clears Was dangling alone in row3 left-aligned under two 2-button rows, which looked wrong. Moves it into row1 alongside Clear Thumbnails and Clear Image Cache as a 3-wide non-destructive row; destructive Clear Everything + Evict stay in row2. Label shortened to 'Clear Tag Cache' to fit the 3-column width. --- booru_viewer/gui/settings.py | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/booru_viewer/gui/settings.py b/booru_viewer/gui/settings.py index dd32ca4..6e4fcf6 100644 --- a/booru_viewer/gui/settings.py +++ b/booru_viewer/gui/settings.py @@ -313,6 +313,15 @@ class SettingsDialog(QDialog): clear_cache_btn.clicked.connect(self._clear_image_cache) btn_row1.addWidget(clear_cache_btn) + clear_tags_btn = QPushButton("Clear Tag Cache") + clear_tags_btn.setToolTip( + "Wipe the per-site tag-type cache (Gelbooru/Moebooru sites). " + "Use this if category colors stop appearing correctly — the " + "app will re-fetch tag types on the next post view." + ) + clear_tags_btn.clicked.connect(self._clear_tag_cache) + btn_row1.addWidget(clear_tags_btn) + actions_layout.addLayout(btn_row1) btn_row2 = QHBoxLayout() @@ -328,20 +337,6 @@ class SettingsDialog(QDialog): actions_layout.addLayout(btn_row2) - btn_row3 = QHBoxLayout() - - clear_tags_btn = QPushButton("Clear Tag Category Cache") - clear_tags_btn.setToolTip( - "Wipe the per-site tag-type cache (Gelbooru/Moebooru sites). " - "Use this if category colors stop appearing correctly — the " - "app will re-fetch tag types on the next post view." - ) - clear_tags_btn.clicked.connect(self._clear_tag_cache) - btn_row3.addWidget(clear_tags_btn) - btn_row3.addStretch(1) - - actions_layout.addLayout(btn_row3) - layout.addWidget(actions_group) layout.addStretch() return w