From ef03b2b94d759898ee2b528ea4604389b5992849 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sun, 4 Nov 2018 09:17:11 +0100 Subject: [PATCH] Leave serialization up to delegate Ends up calling saveProfiles() multiple times otherwise. --- Passepartout/Sources/Model/ConnectionService.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Passepartout/Sources/Model/ConnectionService.swift b/Passepartout/Sources/Model/ConnectionService.swift index 7911fcd9..637ec8f1 100644 --- a/Passepartout/Sources/Model/ConnectionService.swift +++ b/Passepartout/Sources/Model/ConnectionService.swift @@ -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)