Better rename routine.

This commit is contained in:
Damiano Galassi committed 2017-08-29 12:02:26 +02:00
1 parent 6fed1b6aba
commit d8f960b6d3
2 files changed
+14 -7

No files matched your search

+1 -1
View File
@@ -53,9 +53,9 @@ extension PresetManager.Error: LocalizedError {
throw Error.alreadyExists
}
presets.append(newElement)
try save(preset: newElement)
sort()
postNotification()
try save(preset: newElement)
}
func remove(at index: Int) {