This commit is contained in:
Ignacio Serantes
2026-04-19 17:39:01 +02:00
parent b5b70326b1
commit a824a01579
10 changed files with 118 additions and 43 deletions

View File

@@ -345,7 +345,7 @@ class ImageController(QObject):
faces_to_save.append(face_copy)
XmpManager.save_faces(path, faces_to_save)
return XmpManager.save_faces(path, faces_to_save)
def add_face(self, name, x, y, w, h, region_type="Face"):
"""Adds a new face. The full tag path should be passed as 'name'."""
@@ -390,8 +390,8 @@ class ImageController(QObject):
self.metadata_changed.emit(current_path,
{'tags': new_tags_list,
'rating': self._current_rating})
except IOError as e:
print(f"Error setting tags for {current_path}: {e}")
except Exception:
raise
def set_rating(self, new_rating):
current_path = self.get_current_path()