main_window: re-decode thumbnails from disk on size change

The settings thumbnail-resize path now loads from _source_path
instead of scaling from a held _source_pixmap (which no longer
exists after the grid.py change).
This commit is contained in:
pax 2026-04-11 22:40:56 -05:00
parent 12ec94b4b1
commit 172fae9583

View File

@ -1038,8 +1038,10 @@ class BooruApp(QMainWindow):
for grid in (self._grid, self._bookmarks_view._grid, self._library_view._grid): for grid in (self._grid, self._bookmarks_view._grid, self._library_view._grid):
for thumb in grid._thumbs: for thumb in grid._thumbs:
thumb.setFixedSize(new_size, new_size) thumb.setFixedSize(new_size, new_size)
if thumb._source_pixmap: if thumb._source_path:
thumb._pixmap = thumb._source_pixmap.scaled( src = QPixmap(thumb._source_path)
if not src.isNull():
thumb._pixmap = src.scaled(
new_size - 4, new_size - 4, new_size - 4, new_size - 4,
Qt.AspectRatioMode.KeepAspectRatio, Qt.AspectRatioMode.KeepAspectRatio,
Qt.TransformationMode.SmoothTransformation, Qt.TransformationMode.SmoothTransformation,