LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
Merge PR #1510
Brandon Thomasf8d1585c6f31
diff --cc crates/ui-egui/locales/de-formats.jsonindex be8bd041d,5378f425e..ce601ae33--- a/crates/ui-egui/locales/de-formats.json+++ b/crates/ui-egui/locales/de-formats.json@@@ -265,25 -248,6 +265,27 @@@"{name} opened in the other editor": "{name} im anderen Editor geöffnet","{n} originals opened in the other editor": "{n} Originale im anderen Editor geöffnet","· {in_source} identical copies": "· {in_source} identische Kopien",+ "{count} more warnings.": "{count} weitere Warnungen.",+ "{photos} catalog records processed; {collections} collections.": "{photos} Katalogeinträge verarbeitet; {collections} Sammlungen.",+ "{missing} originals are missing. Their catalog records are available; use Find Missing Photos to relink them.": "{missing} Originale fehlen. Ihre Katalogeinträge sind verfügbar; verwende „Fehlende Fotos suchen“, um sie neu zu verknüpfen.",+ "Applied {name}": "{name} angewendet",+ "Delete “{name}”?": "„{name}“ löschen?",+ "Updated {name}": "{name} aktualisiert",+ "Exported to {path}": "Exportiert nach {path}",+ "Saved template {name}": "Vorlage {name} gespeichert",+ "Imported {name}": "{name} importiert",+ "Skipped {problem}": "Übersprungen: {problem}",+ "…and {more} more": "…und {more} weitere",+ "Template preview: {name}": "Vorlagenvorschau: {name}",+ "{n} photos in view · {slides} slides · {time}": "{n} Fotos in der Ansicht · {slides} Folien · {time}",+ "{n} pages": "{n} Seiten",+ "{n} JPEG files": "{n} JPEG-Dateien",+ "{s} s of AV1 video": "{s} s AV1-Video",+ "Slideshow exported: {what}": "Diashow exportiert: {what}",+ " · {n} skipped (could not be rendered)": " · {n} übersprungen (nicht darstellbar)",+ "{n} raws can now be developed from their raw data": "{n} RAW-Dateien können jetzt aus ihren Rohdaten entwickelt werden",+ "LightCraft stopped unexpectedly: {e}\n\nThe log file has the details: {path}": "LightCraft wurde unerwartet beendet: {e}\n\nEinzelheiten stehen in der Protokolldatei: {path}",- "LightCraft stopped unexpectedly: {e}": "LightCraft wurde unerwartet beendet: {e}"++ "LightCraft stopped unexpectedly: {e}": "LightCraft wurde unerwartet beendet: {e}",+ "Renames {n} face{} across the library. The files are not changed.": "Benennt {n} Gesichter in der Bibliothek um. Die Dateien werden nicht geändert.{:.0}",+ "“{to}” is already a person. Combining them makes one person; Undo separates them again.": "„{to}“ ist bereits eine Person. Zusammenführen ergibt eine Person; Rückgängig trennt sie wieder."}diff --cc crates/ui-egui/locales/es-formats.jsonindex c79604f83,4ad62befa..fb2c80100--- a/crates/ui-egui/locales/es-formats.json+++ b/crates/ui-egui/locales/es-formats.json@@@ -265,25 -248,6 +265,27 @@@"{name} opened in the other editor": "{name} abierto en el otro editor","{n} originals opened in the other editor": "{n} originales abiertos en el otro editor","· {in_source} identical copies": "· {in_source} copias idénticas",+ "{count} more warnings.": "{count} advertencias más.",+ "{photos} catalog records processed; {collections} collections.": "{photos} registros del catálogo procesados; {collections} colecciones.",+ "{missing} originals are missing. Their catalog records are available; use Find Missing Photos to relink them.": "Faltan {missing} originales. Sus registros del catálogo están disponibles; usa Buscar fotos que faltan para volver a vincularlos.",+ "Applied {name}": "Se aplicó {name}",+ "Delete “{name}”?": "¿Eliminar «{name}»?",+ "Updated {name}": "Se actualizó {name}",+ "Exported to {path}": "Exportado a {path}",+ "Saved template {name}": "Plantilla {name} guardada",+ "Imported {name}": "Se importó {name}",+ "Skipped {problem}": "Omitido: {problem}",+ "…and {more} more": "…y {more} más",+ "Template preview: {name}": "Vista previa de la plantilla: {name}",+ "{n} photos in view · {slides} slides · {time}": "{n} fotos en la vista · {slides} diapositivas · {time}",+ "{n} pages": "{n} páginas",+ "{n} JPEG files": "{n} archivos JPEG",+ "{s} s of AV1 video": "{s} s de vídeo AV1",+ "Slideshow exported: {what}": "Presentación exportada: {what}",+ " · {n} skipped (could not be rendered)": " · {n} omitidas (no se pudieron representar)",+ "{n} raws can now be developed from their raw data": "{n} RAW ya se pueden revelar a partir de sus datos RAW",+ "LightCraft stopped unexpectedly: {e}\n\nThe log file has the details: {path}": "LightCraft se detuvo inesperadamente: {e}\n\nLos detalles están en el archivo de registro: {path}",- "LightCraft stopped unexpectedly: {e}": "LightCraft se detuvo inesperadamente: {e}"++ "LightCraft stopped unexpectedly: {e}": "LightCraft se detuvo inesperadamente: {e}",+ "Renames {n} face{} across the library. The files are not changed.": "Cambia el nombre de {n} cara{} en toda la biblioteca. Los archivos no se modifican.",+ "“{to}” is already a person. Combining them makes one person; Undo separates them again.": "“{to}” ya es una persona. Combinarlas deja una sola; Deshacer las separa de nuevo."}diff --cc crates/ui-egui/locales/fr-formats.jsonindex 91a56cd1a,e9e2572db..45f40081a--- a/crates/ui-egui/locales/fr-formats.json+++ b/crates/ui-egui/locales/fr-formats.json@@@ -265,25 -248,6 +265,27 @@@"{name} opened in the other editor": "{name} ouvert dans l’autre éditeur","{n} originals opened in the other editor": "{n} originaux ouverts dans l’autre éditeur","· {in_source} identical copies": "· {in_source} copies identiques",+ "{count} more warnings.": "{count} avertissements supplémentaires.",+ "{photos} catalog records processed; {collections} collections.": "{photos} entrées du catalogue traitées ; {collections} collections.",+ "{missing} originals are missing. Their catalog records are available; use Find Missing Photos to relink them.": "{missing} originaux sont manquants. Leurs entrées de catalogue sont disponibles ; utilisez Rechercher les photos manquantes pour rétablir les liens.",+ "Applied {name}": "{name} appliqué",+ "Delete “{name}”?": "Supprimer « {name} » ?",+ "Updated {name}": "{name} mis à jour",+ "Exported to {path}": "Exporté vers {path}",+ "Saved template {name}": "Modèle {name} enregistré",+ "Imported {name}": "{name} importé",+ "Skipped {problem}": "Ignoré : {problem}",+ "…and {more} more": "…et {more} de plus",+ "Template preview: {name}": "Aperçu du modèle : {name}",+ "{n} photos in view · {slides} slides · {time}": "{n} photos affichées · {slides} diapositives · {time}",+ "{n} pages": "{n} pages",+ "{n} JPEG files": "{n} fichiers JPEG",+ "{s} s of AV1 video": "{s} s de vidéo AV1",+ "Slideshow exported: {what}": "Diaporama exporté : {what}",+ " · {n} skipped (could not be rendered)": " · {n} ignorées (rendu impossible)",+ "{n} raws can now be developed from their raw data": "{n} fichiers RAW peuvent désormais être développés à partir de leurs données RAW",+ "LightCraft stopped unexpectedly: {e}\n\nThe log file has the details: {path}": "LightCraft s’est arrêté de façon inattendue : {e}\n\nConsultez le fichier journal pour plus de détails : {path}",- "LightCraft stopped unexpectedly: {e}": "LightCraft s’est arrêté de façon inattendue : {e}"++ "LightCraft stopped unexpectedly: {e}": "LightCraft s’est arrêté de façon inattendue : {e}",+ "Renames {n} face{} across the library. The files are not changed.": "Renomme {n} visage{} dans la bibliothèque. Les fichiers ne sont pas modifiés.",+ "“{to}” is already a person. Combining them makes one person; Undo separates them again.": "« {to} » est déjà une personne. Les combiner n’en fait qu’une ; Annuler les sépare de nouveau."}diff --cc crates/ui-egui/locales/ja-formats.jsonindex 0ab1d2958,ccafc9e92..d38dfdc48--- a/crates/ui-egui/locales/ja-formats.json+++ b/crates/ui-egui/locales/ja-formats.json@@@ -265,25 -248,6 +265,27 @@@"{name} opened in the other editor": "{name}を別のエディタで開きました","{n} originals opened in the other editor": "{n}個の元ファイルを別のエディタで開きました","· {in_source} identical copies": "・同一のコピー {in_source} 件",+ "{count} more warnings.": "ほかに{count}件の警告があります。",+ "{photos} catalog records processed; {collections} collections.": "カタログの{photos}件のレコードを処理しました。コレクションは{collections}件です。",+ "{missing} originals are missing. Their catalog records are available; use Find Missing Photos to relink them.": "{missing}件のオリジナルが見つかりません。カタログのレコードは利用できます。「見つからない写真を検索」で再リンクしてください。",+ "Applied {name}": "{name} を適用しました",+ "Delete “{name}”?": "「{name}」を削除しますか?",+ "Updated {name}": "{name} を更新しました",+ "Exported to {path}": "{path} に書き出しました",+ "Saved template {name}": "テンプレート {name} を保存しました",+ "Imported {name}": "{name} を読み込みました",+ "Skipped {problem}": "スキップ: {problem}",+ "…and {more} more": "…ほか {more} 件",+ "Template preview: {name}": "テンプレートのプレビュー: {name}",+ "{n} photos in view · {slides} slides · {time}": "表示中の写真 {n} 枚 · スライド {slides} 枚 · {time}",+ "{n} pages": "{n} ページ",+ "{n} JPEG files": "JPEG ファイル {n} 個",+ "{s} s of AV1 video": "AV1 ビデオ {s} 秒",+ "Slideshow exported: {what}": "スライドショーを書き出しました:{what}",+ " · {n} skipped (could not be rendered)": " · {n} 枚をスキップ(レンダリングできません)",+ "{n} raws can now be developed from their raw data": "{n}枚のRAWをRAWデータから現像できるようになりました",+ "LightCraft stopped unexpectedly: {e}\n\nThe log file has the details: {path}": "LightCraftが予期せず終了しました: {e}\n\n詳しくはログファイルをご覧ください: {path}",- "LightCraft stopped unexpectedly: {e}": "LightCraftが予期せず終了しました: {e}"++ "LightCraft stopped unexpectedly: {e}": "LightCraftが予期せず終了しました: {e}",+ "Renames {n} face{} across the library. The files are not changed.": "ライブラリ全体で{n}件の顔の名前を変更します。ファイルは変更されません。{:.0}",+ "“{to}” is already a person. Combining them makes one person; Undo separates them again.": "「{to}」はすでに別の人物です。まとめると1人になり、元に戻すと再び分かれます。"}diff --cc crates/ui-egui/locales/pt-br-formats.jsonindex 5391dba20,31858441e..2b6e1f046--- a/crates/ui-egui/locales/pt-br-formats.json+++ b/crates/ui-egui/locales/pt-br-formats.json@@@ -265,25 -248,6 +265,27 @@@"{name} opened in the other editor": "{name} aberto no outro editor","{n} originals opened in the other editor": "{n} originais abertos no outro editor","· {in_source} identical copies": "· {in_source} cópias idênticas",+ "{count} more warnings.": "Mais {count} avisos.",+ "{photos} catalog records processed; {collections} collections.": "{photos} registros do catálogo processados; {collections} coleções.",+ "{missing} originals are missing. Their catalog records are available; use Find Missing Photos to relink them.": "{missing} originais estão ausentes. Seus registros no catálogo estão disponíveis; use Encontrar fotos ausentes para vinculá-los novamente.",+ "Applied {name}": "{name} aplicado",+ "Delete “{name}”?": "Excluir “{name}”?",+ "Updated {name}": "{name} atualizado",+ "Exported to {path}": "Exportado para {path}",+ "Saved template {name}": "Modelo {name} salvo",+ "Imported {name}": "{name} importado",+ "Skipped {problem}": "Ignorado: {problem}",+ "…and {more} more": "…e mais {more}",+ "Template preview: {name}": "Prévia do modelo: {name}",+ "{n} photos in view · {slides} slides · {time}": "{n} fotos na visualização · {slides} slides · {time}",+ "{n} pages": "{n} páginas",+ "{n} JPEG files": "{n} arquivos JPEG",+ "{s} s of AV1 video": "{s} s de vídeo AV1",+ "Slideshow exported: {what}": "Apresentação exportada: {what}",+ " · {n} skipped (could not be rendered)": " · {n} ignoradas (não foi possível renderizar)",+ "{n} raws can now be developed from their raw data": "{n} RAW agora podem ser revelados a partir dos dados RAW",+ "LightCraft stopped unexpectedly: {e}\n\nThe log file has the details: {path}": "O LightCraft parou inesperadamente: {e}\n\nO arquivo de log tem os detalhes: {path}",- "LightCraft stopped unexpectedly: {e}": "O LightCraft parou inesperadamente: {e}"++ "LightCraft stopped unexpectedly: {e}": "O LightCraft parou inesperadamente: {e}",+ "Renames {n} face{} across the library. The files are not changed.": "Renomeia {n} rosto{} na biblioteca. Os arquivos não são alterados.",+ "“{to}” is already a person. Combining them makes one person; Undo separates them again.": "“{to}” já é uma pessoa. Combiná-las deixa uma só; Desfazer as separa de novo."}diff --cc crates/ui-egui/locales/ru-formats.jsonindex 5f6dd0c16,741c33e4e..0cc9dd881--- a/crates/ui-egui/locales/ru-formats.json+++ b/crates/ui-egui/locales/ru-formats.json@@@ -265,25 -248,6 +265,27 @@@"{name} opened in the other editor": "{name} открыт в другом редакторе","{n} originals opened in the other editor": "Открыто оригиналов в другом редакторе: {n}","· {in_source} identical copies": "· идентичных копий: {in_source}",+ "{count} more warnings.": "Других предупреждений: {count}.",+ "{photos} catalog records processed; {collections} collections.": "Обработано записей каталога: {photos}; коллекций: {collections}.",+ "{missing} originals are missing. Their catalog records are available; use Find Missing Photos to relink them.": "Не найдены оригиналы: {missing}. Их записи каталога доступны; используйте поиск отсутствующих фотографий, чтобы восстановить ссылки.",+ "Applied {name}": "Применено: {name}",+ "Delete “{name}”?": "Удалить «{name}»?",+ "Updated {name}": "Обновлено: {name}",+ "Exported to {path}": "Экспортировано в {path}",+ "Saved template {name}": "Шаблон {name} сохранён",+ "Imported {name}": "Импортировано: {name}",+ "Skipped {problem}": "Пропущено: {problem}",+ "…and {more} more": "…и ещё {more}",+ "Template preview: {name}": "Просмотр шаблона: {name}",+ "{n} photos in view · {slides} slides · {time}": "Фото в просмотре: {n} · слайдов: {slides} · {time}",+ "{n} pages": "Страниц: {n}",+ "{n} JPEG files": "Файлов JPEG: {n}",+ "{s} s of AV1 video": "{s} с видео AV1",+ "Slideshow exported: {what}": "Слайд-шоу экспортировано: {what}",+ " · {n} skipped (could not be rendered)": " · пропущено: {n} (не удалось отрисовать)",+ "{n} raws can now be developed from their raw data": "RAW-файлов, которые теперь можно проявлять из RAW-данных: {n}",+ "LightCraft stopped unexpectedly: {e}\n\nThe log file has the details: {path}": "LightCraft неожиданно остановился: {e}\n\nПодробности в файле журнала: {path}",- "LightCraft stopped unexpectedly: {e}": "LightCraft неожиданно остановился: {e}"++ "LightCraft stopped unexpectedly: {e}": "LightCraft неожиданно остановился: {e}",+ "Renames {n} face{} across the library. The files are not changed.": "Переименовывает {n} лиц в библиотеке. Файлы не изменяются.{:.0}",+ "“{to}” is already a person. Combining them makes one person; Undo separates them again.": "«{to}» уже есть среди людей. Объединение оставляет одного человека; отмена снова разделяет их."}diff --cc crates/ui-egui/locales/uk-formats.jsonindex 54cf6505f,bc0b8d6f8..42675238c--- a/crates/ui-egui/locales/uk-formats.json+++ b/crates/ui-egui/locales/uk-formats.json@@@ -265,25 -248,6 +265,27 @@@"{name} opened in the other editor": "{name} відкрито в іншому редакторі","{n} originals opened in the other editor": "Відкрито оригіналів в іншому редакторі: {n}","· {in_source} identical copies": "· ідентичних копій: {in_source}",+ "{count} more warnings.": "Інших попереджень: {count}.",+ "{photos} catalog records processed; {collections} collections.": "Оброблено записів каталогу: {photos}; колекцій: {collections}.",+ "{missing} originals are missing. Their catalog records are available; use Find Missing Photos to relink them.": "Не знайдено оригінали: {missing}. Їхні записи каталогу доступні; скористайтеся пошуком відсутніх фотографій, щоб відновити посилання.",+ "Applied {name}": "Застосовано: {name}",+ "Delete “{name}”?": "Видалити «{name}»?",+ "Updated {name}": "Оновлено: {name}",+ "Exported to {path}": "Експортовано до {path}",+ "Saved template {name}": "Шаблон {name} збережено",+ "Imported {name}": "Імпортовано: {name}",+ "Skipped {problem}": "Пропущено: {problem}",+ "…and {more} more": "…і ще {more}",+ "Template preview: {name}": "Перегляд шаблону: {name}",+ "{n} photos in view · {slides} slides · {time}": "Фото в перегляді: {n} · слайдів: {slides} · {time}",+ "{n} pages": "Сторінок: {n}",+ "{n} JPEG files": "Файлів JPEG: {n}",+ "{s} s of AV1 video": "{s} с відео AV1",+ "Slideshow exported: {what}": "Слайд-шоу експортовано: {what}",+ " · {n} skipped (could not be rendered)": " · пропущено: {n} (не вдалося відтворити)",+ "{n} raws can now be developed from their raw data": "RAW-файлів, які тепер можна проявляти з RAW-даних: {n}",+ "LightCraft stopped unexpectedly: {e}\n\nThe log file has the details: {path}": "LightCraft несподівано зупинився: {e}\n\nПодробиці у файлі журналу: {path}",- "LightCraft stopped unexpectedly: {e}": "LightCraft несподівано зупинився: {e}"++ "LightCraft stopped unexpectedly: {e}": "LightCraft несподівано зупинився: {e}",+ "Renames {n} face{} across the library. The files are not changed.": "Перейменовує {n} облич у бібліотеці. Файли не змінюються.{:.0}",+ "“{to}” is already a person. Combining them makes one person; Undo separates them again.": "«{to}» уже є серед людей. Об’єднання лишає одну людину; скасування знову розділяє їх."}diff --cc crates/ui-egui/locales/zh-hans-formats.jsonindex 5deaf511e,0ce93aa3a..6af55c88d--- a/crates/ui-egui/locales/zh-hans-formats.json+++ b/crates/ui-egui/locales/zh-hans-formats.json@@@ -265,25 -248,6 +265,27 @@@"{name} opened in the other editor": "已在其他编辑器中打开 {name}","{n} originals opened in the other editor": "已在其他编辑器中打开 {n} 个原始文件","· {in_source} identical copies": "· {in_source} 个相同副本",+ "{count} more warnings.": "另有 {count} 条警告。",+ "{photos} catalog records processed; {collections} collections.": "已处理 {photos} 条目录记录;{collections} 个收藏集。",+ "{missing} originals are missing. Their catalog records are available; use Find Missing Photos to relink them.": "有 {missing} 个原始文件缺失。其目录记录可用;请使用“查找缺失照片”重新链接文件。",+ "Applied {name}": "已应用 {name}",+ "Delete “{name}”?": "删除“{name}”?",+ "Updated {name}": "已更新 {name}",+ "Exported to {path}": "已导出到 {path}",+ "Saved template {name}": "已保存模板 {name}",+ "Imported {name}": "已导入 {name}",+ "Skipped {problem}": "已跳过:{problem}",+ "…and {more} more": "…还有 {more} 个",+ "Template preview: {name}": "模板预览:{name}",+ "{n} photos in view · {slides} slides · {time}": "视图中 {n} 张照片 · {slides} 张幻灯片 · {time}",+ "{n} pages": "{n} 页",+ "{n} JPEG files": "{n} 个 JPEG 文件",+ "{s} s of AV1 video": "{s} 秒 AV1 视频",+ "Slideshow exported: {what}": "幻灯片放映已导出:{what}",+ " · {n} skipped (could not be rendered)": " · 已跳过 {n} 张(无法渲染)",+ "{n} raws can now be developed from their raw data": "{n} 个 RAW 现在可以从 RAW 数据冲印",+ "LightCraft stopped unexpectedly: {e}\n\nThe log file has the details: {path}": "LightCraft 意外停止:{e}\n\n详细信息见日志文件:{path}",- "LightCraft stopped unexpectedly: {e}": "LightCraft 意外停止:{e}"++ "LightCraft stopped unexpectedly: {e}": "LightCraft 意外停止:{e}",+ "Renames {n} face{} across the library. The files are not changed.": "在整个图库中重命名 {n} 张面孔。不会改动文件。{:.0}",+ "“{to}” is already a person. Combining them makes one person; Undo separates them again.": "“{to}”已经是另一个人。合并后成为一个人;撤销会再把他们分开。"}diff --cc crates/ui-egui/locales/zh-hant-formats.jsonindex 620bcde7c,8bad2999a..1517e885d--- a/crates/ui-egui/locales/zh-hant-formats.json+++ b/crates/ui-egui/locales/zh-hant-formats.json@@@ -265,25 -248,6 +265,27 @@@"{name} opened in the other editor": "已在其他編輯器中開啟 {name}","{n} originals opened in the other editor": "已在其他編輯器中開啟 {n} 個原始檔案","· {in_source} identical copies": "· {in_source} 個相同副本",+ "{count} more warnings.": "另有 {count} 則警告。",+ "{photos} catalog records processed; {collections} collections.": "已處理 {photos} 筆目錄記錄;{collections} 個收藏集。",+ "{missing} originals are missing. Their catalog records are available; use Find Missing Photos to relink them.": "有 {missing} 個原始檔案遺失。其目錄記錄可用;請使用「尋找遺失相片」重新連結檔案。",+ "Applied {name}": "已套用 {name}",+ "Delete “{name}”?": "刪除「{name}」?",+ "Updated {name}": "已更新 {name}",+ "Exported to {path}": "已匯出到 {path}",+ "Saved template {name}": "已儲存範本 {name}",+ "Imported {name}": "已匯入 {name}",+ "Skipped {problem}": "已略過:{problem}",+ "…and {more} more": "…還有 {more} 個",+ "Template preview: {name}": "範本預覽:{name}",+ "{n} photos in view · {slides} slides · {time}": "檢視中 {n} 張照片 · {slides} 張幻燈片 · {time}",+ "{n} pages": "{n} 頁",+ "{n} JPEG files": "{n} 個 JPEG 檔案",+ "{s} s of AV1 video": "{s} 秒 AV1 視訊",+ "Slideshow exported: {what}": "幻燈片播放已匯出:{what}",+ " · {n} skipped (could not be rendered)": " · 已略過 {n} 張(無法算繪)",+ "{n} raws can now be developed from their raw data": "{n} 個 RAW 現在可以從 RAW 資料沖印",+ "LightCraft stopped unexpectedly: {e}\n\nThe log file has the details: {path}": "LightCraft 意外停止:{e}\n\n詳細資訊請見記錄檔:{path}",- "LightCraft stopped unexpectedly: {e}": "LightCraft 意外停止:{e}"++ "LightCraft stopped unexpectedly: {e}": "LightCraft 意外停止:{e}",+ "Renames {n} face{} across the library. The files are not changed.": "在整個圖庫中重新命名 {n} 張面孔。不會改動檔案。{:.0}",+ "“{to}” is already a person. Combining them makes one person; Undo separates them again.": "「{to}」已經是另一個人。合併後成為一個人;還原會再把他們分開。"}diff --cc crates/ui-egui/src/lib.rsindex 9d4b1ced0,c6b4ad341..f89ccc60b--- a/crates/ui-egui/src/lib.rs+++ b/crates/ui-egui/src/lib.rs@@@ -120,20 -106,12 +120,22 @@@ mod tests_preset_import#[cfg(test)]mod tests_preview_limit;#[cfg(test)]+mod tests_profiles_layout;+#[cfg(test)]mod tests_quit_unsaved;#[cfg(test)]+mod tests_recheck;+#[cfg(test)]+mod tests_sam_setup;+#[cfg(test)]+ mod tests_rename_person;+ #[cfg(test)]mod tests_scroll;#[cfg(test)]+mod tests_slideshow;+#[cfg(test)]+mod tests_solo_sections;+#[cfg(test)]mod tests_switch_library;#[cfg(test)]mod tests_sync;@@@ -551,16 -500,26 +553,32 @@@ impl LightcraftAppself}+ /// The open person page, the way back to it, and the photo it was opened from follow a rename.+ fn follow_renamed_person(&mut self, from: &str, to: &str) {+ let same = |n: &str| n.trim().to_lowercase() == from.trim().to_lowercase();+ if self.ui.person_page.as_deref().is_some_and(same) {+ self.ui.person_page = Some(to.to_string());+ }+ if self.ui.last_person.as_deref().is_some_and(same) {+ self.ui.last_person = Some(to.to_string());+ }+ if let Some((name, photo)) = self.ui.person_from.clone()+ && same(&name)+ {+ self.ui.person_from = Some((to.to_string(), photo));+ }+ }+/// Run a UI or engine command by id. The single entry point for every frontend path.pub fn run(&mut self, id: &str, params: Value) -> Result<Value, String> {+ self.run_typed(id, params).map_err(|e| e.message)+ }++ /// [`LightcraftApp::run`], keeping what kind of error a refusal is: for code that decides on it+ /// (offer a model's download, treat a cancel as one) instead of reading the message.+ pub fn run_typed(&mut self, id: &str, params: Value) -> Result<Value, CommandError> {if let Some(result) = model_setup::intercept(self, id, ¶ms) {- return result;+ return result.map_err(CommandError::from);}if let Some(r) = menus::run_ui_command(self, id, ¶ms) {if r.is_ok() {