Skip redundant updates of current profile

This commit is contained in:
Davide De Rosa 2022-04-23 09:58:38 +02:00
parent ad1539023e
commit 8f4e4bc7c5
1 changed files with 1 additions and 0 deletions

View File

@ -320,6 +320,7 @@ extension ProfileManager {
currentProfile.$value
.dropFirst()
.removeDuplicates()
.sink {
self.willUpdateCurrentProfile($0)
}.store(in: &cancellables)