Fix icons, external file rename

This commit is contained in:
Christoph Hagen
2024-12-14 18:26:11 +01:00
parent be2aab2ea8
commit cdaaa36303
6 changed files with 22 additions and 44 deletions

View File

@ -55,14 +55,9 @@ struct FileDetailView: View {
}
private func setNewId() {
do {
try file.content.storage.move(file: file.id, to: newId)
} catch {
print("Failed to move file \(file.id)")
if !file.update(id: newId) {
newId = file.id
return
}
file.id = newId
}
}