v0.9.24
This commit is contained in:
@@ -239,7 +239,10 @@ class FastTagManager:
|
||||
current_path = controller.get_current_path() if controller else None
|
||||
if not current_path:
|
||||
return
|
||||
controller.toggle_tag(tag_name, is_checked)
|
||||
try:
|
||||
controller.toggle_tag(tag_name, is_checked)
|
||||
except Exception as e:
|
||||
QMessageBox.critical(self.viewer, UITexts.ERROR, str(e))
|
||||
self.viewer.update_status_bar()
|
||||
if self.main_win:
|
||||
if is_checked:
|
||||
@@ -2836,8 +2839,11 @@ class ImageViewer(QWidget):
|
||||
self.main_win.face_names_history = updated_history
|
||||
|
||||
# Save changes and add new tag
|
||||
self.controller.save_faces()
|
||||
self.controller.toggle_tag(new_full_tag, True)
|
||||
try:
|
||||
self.controller.save_faces()
|
||||
self.controller.toggle_tag(new_full_tag, True)
|
||||
except Exception as e:
|
||||
QMessageBox.critical(self, UITexts.ERROR, str(e))
|
||||
if self.canvas:
|
||||
self.canvas.update()
|
||||
|
||||
@@ -3137,7 +3143,10 @@ class ImageViewer(QWidget):
|
||||
self.canvas.update()
|
||||
|
||||
if added_count > 0:
|
||||
self.controller.save_faces()
|
||||
try:
|
||||
self.controller.save_faces()
|
||||
except Exception as e:
|
||||
QMessageBox.critical(self, UITexts.ERROR, str(e))
|
||||
|
||||
def run_pet_detection(self):
|
||||
"""Runs pet detection on the current image."""
|
||||
@@ -3196,7 +3205,10 @@ class ImageViewer(QWidget):
|
||||
self.canvas.update()
|
||||
|
||||
if added_count > 0:
|
||||
self.controller.save_faces()
|
||||
try:
|
||||
self.controller.save_faces()
|
||||
except Exception as e:
|
||||
QMessageBox.critical(self, UITexts.ERROR, str(e))
|
||||
|
||||
def run_body_detection(self):
|
||||
"""Runs body detection on the current image."""
|
||||
@@ -3257,7 +3269,10 @@ class ImageViewer(QWidget):
|
||||
self.canvas.update()
|
||||
|
||||
if added_count > 0:
|
||||
self.controller.save_faces()
|
||||
try:
|
||||
self.controller.save_faces()
|
||||
except Exception as e:
|
||||
QMessageBox.critical(self, UITexts.ERROR, str(e))
|
||||
|
||||
def toggle_filmstrip(self):
|
||||
"""Shows or hides the filmstrip widget."""
|
||||
|
||||
Reference in New Issue
Block a user