Fix import_screen: setIcon attend QIcon pas QPixmap

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-21 22:09:59 +01:00
parent a297672248
commit 622b55bcd1

View File

@@ -79,8 +79,9 @@ class ImportScreen(QWidget):
Qt.AspectRatioMode.KeepAspectRatio,
Qt.TransformationMode.SmoothTransformation
)
btn.setIcon(scaled)
from PyQt6.QtGui import QIcon
from PyQt6.QtCore import QSize
btn.setIcon(QIcon(scaled))
btn.setIconSize(QSize(170, 170))
btn.clicked.connect(lambda checked, p=path: self.main_window.show_editor(p))