aurelienpierreeng / ansel

A darktable fork minus the bloat plus some design vision.
https://ansel.photos
GNU General Public License v3.0
640 stars 19 forks source link

Import and remove from database fixes #343

Closed Jiyone closed 1 week ago

Jiyone commented 3 weeks ago

Database: in the Import file chooser, there can be a crash when selecting a file which have been copied earlier and the copy have then been removed from database. The entry in the meta_data table was still existing and was used to recover an imgid and tried to find a path even if the file was deleted. To fix this, when removing an image, now it deletes the image's entry in meta_data table too.

Import preview: The function to refresh preview now uses the list of selected file instead of the selected file from file chooser, to find if a file is in the library by metadata.

sonarcloud[bot] commented 3 weeks ago

Quality Gate Failed Quality Gate failed

Failed conditions
4.6% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud