Fix dictionary source cleanup after deletion

Match source URLs against installed payload filenames, including converted .dsl.dz files.

Remove source records only after successful payload deletion and preserve them while a matching file remains.

Clean stale records from physical directory state without racing pending downloads.
This commit is contained in:
2026-08-06 14:02:03 +03:00
parent 9d18d0c927
commit 4a103f8c61
9 changed files with 198 additions and 127 deletions
@@ -1,2 +1,3 @@
- Dictionaries can no longer be deleted while an update is running, which used to lose their update source
- Fixed the dictionary icon sliding outside the row while swiping to delete
- Fixed matching source URLs to installed dictionary files, so deleted dictionaries can be downloaded again from the same URL
@@ -1,2 +1,3 @@
- Словари больше нельзя удалить во время обновления — раньше при этом терялся источник обновления
- Исправлен выход иконки словаря за границы строки при свайпе
- Исправлено сопоставление URL-источников с установленными файлами — удалённый словарь теперь можно повторно скачать по тому же URL