diff options
author | marinofaggiana <marino@marinofaggiana.com> | 2020-07-27 10:42:49 +0300 |
---|---|---|
committer | marinofaggiana <marino@marinofaggiana.com> | 2020-07-27 10:42:49 +0300 |
commit | 6566a5e960cc3a32e5093339a2e04bb0ea9f4493 (patch) | |
tree | cd6391f608b4dc8d20ff83c92e6b8aa9c47efbef /File Provider Extension | |
parent | cfdf630316a1cdc4aa59125d77cc49165c1f5c8d (diff) |
coding
Diffstat (limited to 'File Provider Extension')
-rw-r--r-- | File Provider Extension/FileProviderData.swift | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/File Provider Extension/FileProviderData.swift b/File Provider Extension/FileProviderData.swift index 3b3b3e1b3..c6c44ad4f 100644 --- a/File Provider Extension/FileProviderData.swift +++ b/File Provider Extension/FileProviderData.swift @@ -156,7 +156,6 @@ class fileProviderData: NSObject { func updateFavoriteForWorkingSet() { - var updateWorkingSet = false let oldListFavoriteIdentifierRank = listFavoriteIdentifierRank listFavoriteIdentifierRank = NCManageDatabase.sharedInstance.getTableMetadatasDirectoryFavoriteIdentifierRank(account: account) @@ -168,7 +167,6 @@ class fileProviderData: NSObject { let item = FileProviderItem(metadata: metadata, parentItemIdentifier: parentItemIdentifier) fileProviderSignalUpdateWorkingSetItem[item.itemIdentifier] = item - updateWorkingSet = true } // (REMOVE) @@ -180,13 +178,10 @@ class fileProviderData: NSObject { let itemIdentifier = fileProviderUtility.sharedInstance.getItemIdentifier(metadata: metadata) fileProviderSignalDeleteWorkingSetItemIdentifier[itemIdentifier] = itemIdentifier - updateWorkingSet = true } } - if updateWorkingSet { - signalEnumerator(for: [.workingSet]) - } + signalEnumerator(for: [.workingSet]) } // MARK: - |