Leave serialization up to delegate

Ends up calling saveProfiles() multiple times otherwise.
This commit is contained in:
Davide De Rosa 2018-11-04 09:17:11 +01:00
parent 3f5d23a34c
commit ef03b2b94d
1 changed files with 0 additions and 6 deletions

View File

@ -342,9 +342,6 @@ class ConnectionService: Codable {
activeProfileKey = key
}
// serialize immediately
saveProfiles()
delegate?.connectionService(didAdd: profile)
}
@ -381,9 +378,6 @@ class ConnectionService: Codable {
activeProfileKey = newKey
}
// serialize immediately
saveProfiles()
delegate = temporaryDelegate
delegate?.connectionService(didRename: oldProfile, to: newProfile)