LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
Merge PR #3403: LRC-LIB-CATALOG-SWITCH: files waiting for a library wait for a running import instead of being dropped
aiongg1e0289cb375b
diff --cc crates/ui-egui/locales/cs.jsonindex 199ea3351,14753445c..60ac99f07--- a/crates/ui-egui/locales/cs.json+++ b/crates/ui-egui/locales/cs.json@@@ -2410,7 -2407,7 +2410,8 @@@"Dropped Files": "Přetažené soubory","Import dropped files without review": "Importovat přetažené soubory bez kontroly","An import is running": "Import už běží",+ "The photos are imported once it ends": "Fotky se naimportují potom","An import is running. Drop photos when it has finished": "Import už běží. Fotky přetáhněte, až skončí",- "Finish Lightroom catalog import before adding photos": "Dokončete import katalogu Lightroom, než přidáte fotky"+ "Finish Lightroom catalog import before adding photos": "Dokončete import katalogu Lightroom, než přidáte fotky",+ "Import Thumbnail Size": "Velikost miniatur při importu"}diff --cc crates/ui-egui/locales/de.jsonindex eb7a80b83,2a7ca318d..2a7ffa28d--- a/crates/ui-egui/locales/de.json+++ b/crates/ui-egui/locales/de.json@@@ -3442,7 -3439,7 +3442,8 @@@"Dropped Files": "Abgelegte Dateien","Import dropped files without review": "Abgelegte Dateien ohne Prüfung importieren","An import is running": "Ein Import läuft",+ "The photos are imported once it ends": "Die Fotos werden danach importiert","An import is running. Drop photos when it has finished": "Ein Import läuft. Lege die Fotos ab, wenn er fertig ist",- "Finish Lightroom catalog import before adding photos": "Schließe den Import des Lightroom-Katalogs ab, bevor du Fotos hinzufügst"+ "Finish Lightroom catalog import before adding photos": "Schließe den Import des Lightroom-Katalogs ab, bevor du Fotos hinzufügst",+ "Import Thumbnail Size": "Vorschaubildgröße beim Import"}diff --cc crates/ui-egui/locales/es.jsonindex cd7608c7b,eacc8fb03..4df92685d--- a/crates/ui-egui/locales/es.json+++ b/crates/ui-egui/locales/es.json@@@ -2360,8 -2357,7 +2360,9 @@@"Dropped Files": "Archivos soltados","Import dropped files without review": "Importar los archivos soltados sin revisión","An import is running": "Hay una importación en curso",+ "The photos are imported once it ends": "Las fotos se importarán después","An import is running. Drop photos when it has finished": "Hay una importación en curso. Suelta las fotos cuando termine",- "Finish Lightroom catalog import before adding photos": "Termina la importación del catálogo de Lightroom antes de añadir fotos"+ "Finish Lightroom catalog import before adding photos": "Termina la importación del catálogo de Lightroom antes de añadir fotos",+ "Thumbnail size": "Tamaño de las miniaturas",+ "Import Thumbnail Size": "Tamaño de las miniaturas de importación"}diff --cc crates/ui-egui/locales/it.jsonindex c03a07b2a,8c495ffd2..e505ed2a1--- a/crates/ui-egui/locales/it.json+++ b/crates/ui-egui/locales/it.json@@@ -2363,8 -2360,7 +2363,9 @@@"Dropped Files": "File rilasciati","Import dropped files without review": "Importa i file rilasciati senza revisione","An import is running": "Un'importazione è in corso",+ "The photos are imported once it ends": "Le foto verranno importate dopo","An import is running. Drop photos when it has finished": "Un'importazione è in corso. Trascina le foto quando è finita",- "Finish Lightroom catalog import before adding photos": "Termina l'importazione del catalogo Lightroom prima di aggiungere foto"+ "Finish Lightroom catalog import before adding photos": "Termina l'importazione del catalogo Lightroom prima di aggiungere foto",+ "Thumbnail size": "Dimensione delle miniature",+ "Import Thumbnail Size": "Dimensione delle miniature di importazione"}diff --cc crates/ui-egui/locales/ja.jsonindex 3df86e1b5,135283358..545164e57--- a/crates/ui-egui/locales/ja.json+++ b/crates/ui-egui/locales/ja.json@@@ -2358,8 -2355,7 +2358,9 @@@"Dropped Files": "ドロップしたファイル","Import dropped files without review": "ドロップしたファイルを確認せずに読み込む","An import is running": "読み込み中です",+ "The photos are imported once it ends": "終わりしだい写真を読み込みます","An import is running. Drop photos when it has finished": "読み込み中です。完了してから写真をドロップしてください",- "Finish Lightroom catalog import before adding photos": "写真を追加する前に Lightroom カタログの読み込みを完了してください"+ "Finish Lightroom catalog import before adding photos": "写真を追加する前に Lightroom カタログの読み込みを完了してください",+ "Thumbnail size": "サムネイルのサイズ",+ "Import Thumbnail Size": "読み込みサムネイルのサイズ"}diff --cc crates/ui-egui/locales/ka.jsonindex fc343624e,8b0170b7b..6ec542023--- a/crates/ui-egui/locales/ka.json+++ b/crates/ui-egui/locales/ka.json@@@ -2736,9 -2733,7 +2736,10 @@@"Dropped Files": "ჩაგდებული ფაილები","Import dropped files without review": "ჩაგდებული ფაილების იმპორტი გადახედვის გარეშე","An import is running": "იმპორტი მიმდინარეობს",+ "The photos are imported once it ends": "ფოტოები ამის შემდეგ შემოიტანება","An import is running. Drop photos when it has finished": "იმპორტი მიმდინარეობს. ფოტოები ჩააგდეთ, როცა დასრულდება",- "Finish Lightroom catalog import before adding photos": "ფოტოების დამატებამდე დაასრულეთ Lightroom-ის კატალოგის იმპორტი"+ "Finish Lightroom catalog import before adding photos": "ფოტოების დამატებამდე დაასრულეთ Lightroom-ის კატალოგის იმპორტი",+ "Thumbnail size": "მინიატურების ზომა",+ "Import Thumbnail Size": "იმპორტის მინიატურების ზომა",+ "Click to type a value, drag to change it": "დააწკაპუნეთ მნიშვნელობის შესაყვანად, გადაათრიეთ მის შესაცვლელად"}diff --cc crates/ui-egui/locales/pl.jsonindex 1138009e2,e59be06dc..2aa10e8ba--- a/crates/ui-egui/locales/pl.json+++ b/crates/ui-egui/locales/pl.json@@@ -2285,8 -2282,7 +2285,9 @@@"Dropped Files": "Upuszczone pliki","Import dropped files without review": "Importuj upuszczone pliki bez przeglądu","An import is running": "Import jest w toku",+ "The photos are imported once it ends": "Zdjęcia zostaną zaimportowane potem","An import is running. Drop photos when it has finished": "Import jest w toku. Upuść zdjęcia, gdy się zakończy",- "Finish Lightroom catalog import before adding photos": "Zakończ import katalogu Lightrooma, zanim dodasz zdjęcia"+ "Finish Lightroom catalog import before adding photos": "Zakończ import katalogu Lightrooma, zanim dodasz zdjęcia",+ "Thumbnail size": "Rozmiar miniatur",+ "Import Thumbnail Size": "Rozmiar miniatur importu"}diff --cc crates/ui-egui/locales/pt-br.jsonindex e07cfaf73,025cf36bf..da04c9741--- a/crates/ui-egui/locales/pt-br.json+++ b/crates/ui-egui/locales/pt-br.json@@@ -2204,8 -2201,7 +2204,9 @@@"Dropped Files": "Arquivos soltos","Import dropped files without review": "Importar arquivos soltos sem revisão","An import is running": "Uma importação está em andamento",+ "The photos are imported once it ends": "As fotos serão importadas depois","An import is running. Drop photos when it has finished": "Uma importação está em andamento. Solte as fotos quando ela terminar",- "Finish Lightroom catalog import before adding photos": "Conclua a importação do catálogo do Lightroom antes de adicionar fotos"+ "Finish Lightroom catalog import before adding photos": "Conclua a importação do catálogo do Lightroom antes de adicionar fotos",+ "Thumbnail size": "Tamanho das miniaturas",+ "Import Thumbnail Size": "Tamanho das miniaturas de importação"}diff --cc crates/ui-egui/locales/ru.jsonindex 5deeee5dc,b3edd7333..02b714add--- a/crates/ui-egui/locales/ru.json+++ b/crates/ui-egui/locales/ru.json@@@ -2567,9 -2348,7 +2567,10 @@@"Dropped Files": "Перетащенные файлы","Import dropped files without review": "Импортировать перетащенные файлы без проверки","An import is running": "Импорт уже выполняется",+ "The photos are imported once it ends": "Фото будут импортированы после этого","An import is running. Drop photos when it has finished": "Импорт уже выполняется. Перетащите фото, когда он закончится",- "Finish Lightroom catalog import before adding photos": "Завершите импорт каталога Lightroom, прежде чем добавлять фото"+ "Finish Lightroom catalog import before adding photos": "Завершите импорт каталога Lightroom, прежде чем добавлять фото",+ "★ Favorites": "★ Избранное",+ "Thumbnail size": "Размер миниатюр",+ "Import Thumbnail Size": "Размер миниатюр при импорте"}diff --cc crates/ui-egui/locales/uk.jsonindex ed69eea57,fe538841f..2a7d20b46--- a/crates/ui-egui/locales/uk.json+++ b/crates/ui-egui/locales/uk.json@@@ -2356,8 -2353,7 +2356,9 @@@"Dropped Files": "Перетягнуті файли","Import dropped files without review": "Імпортувати перетягнуті файли без перегляду","An import is running": "Імпорт уже виконується",+ "The photos are imported once it ends": "Фото буде імпортовано після цього","An import is running. Drop photos when it has finished": "Імпорт уже виконується. Перетягніть фото, коли він завершиться",- "Finish Lightroom catalog import before adding photos": "Завершіть імпорт каталогу Lightroom, перш ніж додавати фото"+ "Finish Lightroom catalog import before adding photos": "Завершіть імпорт каталогу Lightroom, перш ніж додавати фото",+ "Thumbnail size": "Розмір мініатюр",+ "Import Thumbnail Size": "Розмір мініатюр імпорту"}diff --cc crates/ui-egui/locales/zh-hans.jsonindex 4c35b9c02,89d6b4387..a00f935a7--- a/crates/ui-egui/locales/zh-hans.json+++ b/crates/ui-egui/locales/zh-hans.json@@@ -2202,8 -2199,7 +2202,9 @@@"Dropped Files": "拖入的文件","Import dropped files without review": "不经检查直接导入拖入的文件","An import is running": "正在导入",+ "The photos are imported once it ends": "结束后即导入这些照片","An import is running. Drop photos when it has finished": "正在导入。导入完成后再拖放照片",- "Finish Lightroom catalog import before adding photos": "添加照片前,请先完成 Lightroom 目录的导入"+ "Finish Lightroom catalog import before adding photos": "添加照片前,请先完成 Lightroom 目录的导入",+ "Thumbnail size": "缩略图大小",+ "Import Thumbnail Size": "导入缩略图大小"}diff --cc crates/ui-egui/locales/zh-hant.jsonindex 89078b3a2,6eb261f2f..76f79eabf--- a/crates/ui-egui/locales/zh-hant.json+++ b/crates/ui-egui/locales/zh-hant.json@@@ -2159,8 -2156,7 +2159,9 @@@"Dropped Files": "拖放的檔案","Import dropped files without review": "不經檢查直接匯入拖放的檔案","An import is running": "正在匯入",+ "The photos are imported once it ends": "結束後即匯入這些照片","An import is running. Drop photos when it has finished": "正在匯入。匯入完成後再拖放照片",- "Finish Lightroom catalog import before adding photos": "新增照片前,請先完成 Lightroom 目錄的匯入"+ "Finish Lightroom catalog import before adding photos": "新增照片前,請先完成 Lightroom 目錄的匯入",+ "Thumbnail size": "縮圖大小",+ "Import Thumbnail Size": "匯入縮圖大小"}diff --cc crates/ui-egui/src/dialogs/settings/libraries.rsindex 6f63530c1,40e0d6385..30724efa4--- a/crates/ui-egui/src/dialogs/settings/libraries.rs+++ b/crates/ui-egui/src/dialogs/settings/libraries.rs@@@ -14,9 -11,10 +14,13 @@@ pub(crate) fn can_switch_library(app: &if app.import.is_some() || app.scan.is_some() {return Err("wait for the import to finish before switching libraries".into());}+ if app.pending_picks.iter().any(|p| p.command == "folder.move") {+ return Err("wait for Move Folder To… to finish before switching libraries".into());+ }+ // they were meant for the library open now (issue #2779)+ if !app.waiting_import.files.is_empty() {+ return Err("wait for the photos waiting to be imported before switching libraries".into());+ }Ok(())}diff --cc docs/whats-new.mdindex 9abcd644d,c7442b75f..fc9b7f834--- a/docs/whats-new.md+++ b/docs/whats-new.md@@@ -2,80 -2,13 +2,85 @@@## 2026-10-30+### Samsung panoramas import+- Some panoramas from Samsung phones were refused as truncated ("the image data doesn't end with an end-of-image+ marker"), although other apps open them whole: their image data runs straight into the Samsung (SEF) block at the+ end of the file, with no end-of-image marker in between. When the file ends with a valid SEF block, the image now+ ends where that block begins, so these photos import, show and build previews. A JPEG that is really cut short is+ still refused.++ ### Photos waiting for a library wait for a running import too+ - Photos given on the command line or dropped on the launch list are imported once a library opens. If another import+ or a Synchronize Folder is still running then, they now wait for it to end instead of being dropped, and a message+ says so (issue #2779).++## 2026-10-29++### Move Folder To… no longer freezes the window+- Move Folder To…, in the menu of a folder in Folders or Local, now opens its folder dialog the way Import and Move to+ Folder… do: the window keeps drawing and answering while you choose, and the folder moves when the dialog closes,+ with the same "Moved; N photo(s) relinked" message. Before, the dialog held up the whole window until it closed;+ on Linux with X11 the app could stop responding altogether. While the dialog is open, another library can't be+ opened (the move belongs to the library it was started in), and while Open Library… or New Library… waits for+ its folder, Move Folder To… is unavailable.++### A library on a disconnected drive is reported at launch, not replaced+- When the library LightCraft last opened is missing at launch, because its drive or network share isn't connected+ yet or it was moved, the window now says it couldn't open the library and offers Try Again, Choose Another+ Library…, Continue Without Saving and Quit. Before, LightCraft quietly made a new, empty library at that path,+ filled it with the demo photos and opened it, so it looked as if the photos and edits were gone. Nothing is+ written there now, and Try Again opens the library once its drive or share is back: on an empty folder left in+ its place, such as a share's mount point, it says so again instead of making a new library there. A library+ folder LightCraft isn't allowed to read is reported as unreadable, with the system's reason, not as gone. A+ library given with `--library` or `LIGHTCRAFT_LIBRARY`, and the default location on first launch, are still+ created as before.++## 2026-10-28++### Local's standard places can't be renamed by mistake+- The Pictures, Desktop, Downloads and Home rows of Local no longer offer Rename Folder… or Move Folder To…. Before,+ the Rename prompt began with the row's translated label rather than the folder's name, so in German pressing OK+ on “Bilder” renamed your real Pictures folder to “Bilder”, and Home could be renamed the same way. Folders inside+ them, and folders you keep in Local with Browse Folder…, rename as before, starting from their real name. The+ `folder.rename` and `folder.move` commands now refuse the home folder and its Pictures, Desktop and Downloads too,+ so a script or an agent can't do it either.++## 2026-10-27++### The Edit menu groups Select Only Active Photo and Paste Settings from Previous with their kin+- Select Only Active Photo now sits under Deselect All, and Paste Settings from Previous under Paste Selected Settings…, instead of both after Settings…, near the end of the Edit menu. On macOS, where Settings… lives in the application menu, the Edit menu no longer shows two separator lines in a row.++### Reading a photo from a network share asks the server less+- Checking a photo (before an import, and for Reload, Recheck, Relink and Convert) asked for the file's size, then+ opened it, then asked for its modification time as a question of its own. It now opens the file once and reads+ both from the open file, so each photo costs the server fewer round trips (about a quarter less time to read a+ set of photos from an SMB share, in one measurement on one share). What is imported and the messages for a file+ that can't be read are the same.++## 2026-10-25++### `>=` and `<=` work in the search box+- Fielded search tokens now take inclusive comparisons: `rating:>=3`, `iso:<=400`, `f:>=2.8`, `focal:<=50`. Before,+ the `=` was read as part of the number, so such a search quietly showed no photos at all.++### Import rename numbering stops safely at its limit+- Copy and Move imports can use the last representable rename number once. If more renamed files remain, each is+ reported as failed with guidance to lower `renameStart` or leave `rename` blank; completed transfers stay+ accounted for and catalogued. A `renameStart` value outside this platform's range is rejected before setup.+## 2026-10-24+### A refused move no longer switches the Move Photos question off+- Ticking Don't ask again in the question that appears when you drop photos on a Folders row used to be remembered even when the move was then refused (for example because a file of the same name is already in that folder). The choice is now kept only once the move has started, so a refused move leaves the question on.++### Importing a folder from a network share waits less+- After the import review, the import used to check that each photo was still as the review had seen it by asking the+ disk about one photo after another, so on a network share every photo waited for a round trip to the server. It now+ asks about up to 16 photos at a time, the same wait for every 16 instead of for each one. Reading the photos in the review+ is unchanged.+- Looking for each photo's `.xmp` sidecar, which asks the disk several names for every photo, also goes up to 16+ photos at a time.+### Relative-date filters and smart albums follow the clock- A current view or source count using “in the last” rules now refreshes when the session clock moves into a newminute, even when no catalog edit occurred. This fixes stale photos remaining in the grid and stale counts for