Add debug logging for copy to clipboard

This commit is contained in:
pax 2026-04-05 15:31:42 -05:00
parent 0a9b57621d
commit 813ee58fd3

View File

@ -1950,8 +1950,10 @@ class BooruApp(QMainWindow):
if cp.exists(): if cp.exists():
path = str(cp) path = str(cp)
if not path or not Path(path).exists(): if not path or not Path(path).exists():
log.debug(f"Copy failed: path={path} preview_path={self._preview._current_path}")
self._status.showMessage("Nothing to copy") self._status.showMessage("Nothing to copy")
return return
log.debug(f"Copying: {path}")
import shutil import shutil
_IMAGE_EXTS = {".jpg", ".jpeg", ".png", ".gif", ".webp"} _IMAGE_EXTS = {".jpg", ".jpeg", ".png", ".gif", ".webp"}