From 8f4e4bc7c56ae7b962adf56fd7f1100a4645e019 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sat, 23 Apr 2022 09:58:38 +0200 Subject: [PATCH] Skip redundant updates of current profile --- .../Sources/PassepartoutProfiles/Managers/ProfileManager.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/PassepartoutCore/Sources/PassepartoutProfiles/Managers/ProfileManager.swift b/PassepartoutCore/Sources/PassepartoutProfiles/Managers/ProfileManager.swift index cc472986..6ef8f6d5 100644 --- a/PassepartoutCore/Sources/PassepartoutProfiles/Managers/ProfileManager.swift +++ b/PassepartoutCore/Sources/PassepartoutProfiles/Managers/ProfileManager.swift @@ -320,6 +320,7 @@ extension ProfileManager { currentProfile.$value .dropFirst() + .removeDuplicates() .sink { self.willUpdateCurrentProfile($0) }.store(in: &cancellables)