Add gpx type, fix file replacement
This commit is contained in:
@ -108,7 +108,11 @@ final class FileResource: Item, LocalizedItem {
|
||||
}
|
||||
|
||||
func save(textContent: String) -> Bool {
|
||||
content.storage.save(fileContent: textContent, for: id)
|
||||
guard content.storage.save(fileContent: textContent, for: id) else {
|
||||
return false
|
||||
}
|
||||
modifiedDate = .now
|
||||
return true
|
||||
}
|
||||
|
||||
func dataContent() -> Foundation.Data? {
|
||||
|
Reference in New Issue
Block a user