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.
This commit is contained in:
pax 2026-04-15 17:55:31 -05:00
parent deec81fc12
commit db4348c077

View File

@ -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