This commit is contained in:
Ignacio Serantes
2026-04-12 11:58:32 +02:00
parent 8ade5fde54
commit b253b6d6e7
2 changed files with 12 additions and 6 deletions

View File

@@ -3180,7 +3180,8 @@ class ImageViewer(QWidget):
suggested = history[0] if history and APP_CONFIG.get( suggested = history[0] if history and APP_CONFIG.get(
"pet_use_last_name", False) else "" "pet_use_last_name", False) else ""
full_tag, updated_history, ok = FaceNameDialog.get_name( full_tag, updated_history, ok = FaceNameDialog.get_name(
self, history, current_name=suggested, main_win=self.main_win, region_type="Pet") self, history, current_name=suggested, main_win=self.main_win,
region_type="Pet")
if ok and full_tag: if ok and full_tag:
new_pet['name'] = full_tag new_pet['name'] = full_tag
@@ -3240,7 +3241,8 @@ class ImageViewer(QWidget):
suggested = history[0] if history and APP_CONFIG.get( suggested = history[0] if history and APP_CONFIG.get(
"body_use_last_name", False) else "" "body_use_last_name", False) else ""
full_tag, updated_history, ok = FaceNameDialog.get_name( full_tag, updated_history, ok = FaceNameDialog.get_name(
self, history, current_name=suggested, main_win=self.main_win, region_type="Body") self, history, current_name=suggested, main_win=self.main_win,
region_type="Body")
if ok and full_tag: if ok and full_tag:
new_body['name'] = full_tag new_body['name'] = full_tag

View File

@@ -775,8 +775,10 @@ class SettingsDialog(QDialog):
self.object_history_spin.setToolTip(UITexts.SETTINGS_OBJECT_HISTORY_TOOLTIP) self.object_history_spin.setToolTip(UITexts.SETTINGS_OBJECT_HISTORY_TOOLTIP)
faces_layout.addLayout(object_history_layout) faces_layout.addLayout(object_history_layout)
self.object_use_last_name_check = QCheckBox(UITexts.SETTINGS_USE_LAST_NAME_LABEL) self.object_use_last_name_check = QCheckBox(
self.object_use_last_name_check.setToolTip(UITexts.SETTINGS_USE_LAST_NAME_TOOLTIP) UITexts.SETTINGS_USE_LAST_NAME_LABEL)
self.object_use_last_name_check.setToolTip(
UITexts.SETTINGS_USE_LAST_NAME_TOOLTIP)
faces_layout.addWidget(self.object_use_last_name_check) faces_layout.addWidget(self.object_use_last_name_check)
# --- Landmark Section --- # --- Landmark Section ---
@@ -826,8 +828,10 @@ class SettingsDialog(QDialog):
faces_layout.addLayout(landmark_history_layout) faces_layout.addLayout(landmark_history_layout)
faces_layout.addStretch() faces_layout.addStretch()
self.landmark_use_last_name_check = QCheckBox(UITexts.SETTINGS_USE_LAST_NAME_LABEL) self.landmark_use_last_name_check = QCheckBox(
self.landmark_use_last_name_check.setToolTip(UITexts.SETTINGS_USE_LAST_NAME_TOOLTIP) UITexts.SETTINGS_USE_LAST_NAME_LABEL)
self.landmark_use_last_name_check.setToolTip(
UITexts.SETTINGS_USE_LAST_NAME_TOOLTIP)
faces_layout.addWidget(self.landmark_use_last_name_check) faces_layout.addWidget(self.landmark_use_last_name_check)
# --- Viewer Tab --- # --- Viewer Tab ---