fix: redraws pixmap after changing image settings so restart is no longer required

This commit is contained in:
2026-04-04 02:51:45 +02:00
parent cb7e74a224
commit 3de2110a3e
3 changed files with 27 additions and 5 deletions
+3 -1
View File
@@ -15,6 +15,8 @@ class Image(QObject):
parent.installEventFilter(self)
state.image_changed.connect(self.update_image_overlay)
if state.image_path and os.path.exists(state.image_path):
self._load_and_display(state.image_path)
@@ -35,7 +37,7 @@ class Image(QObject):
return
scaled_image = image.scaledToWidth(
int(state.image_width), Qt.TransformationMode.SmoothTransformation
state.image_width, Qt.TransformationMode.SmoothTransformation
)
max_width = parent.width()