Fix recursive call in _set_preview_media breaking all previews

Was calling itself instead of self._preview.set_media in the
else branch, causing infinite recursion and silent failure.
This commit is contained in:
pax 2026-04-05 02:25:42 -05:00
parent c231842897
commit cfbb58fe9f

View File

@ -845,7 +845,7 @@ class BooruApp(QMainWindow):
self._preview._info_label.setText(info)
self._preview._current_path = path
else:
self._set_preview_media(path, info)
self._preview.set_media(path, info)
def _update_fullscreen(self, path: str, info: str) -> None:
"""Sync the fullscreen window with the current preview media."""