Better rename routine.
This commit is contained in:
2 files changed
+14
-7
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user