Fix icons, external file rename
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user