diff options
author | marinofaggiana <marino@marinofaggiana.com> | 2020-10-04 13:28:43 +0300 |
---|---|---|
committer | marinofaggiana <marino@marinofaggiana.com> | 2020-10-04 13:28:43 +0300 |
commit | d67312a03f052802d14e9662e296159e86448152 (patch) | |
tree | 2190a94cd88a422c6562cfb9bc9e8d202397b39d /File Provider Extension | |
parent | 80eb1bed8e6fa9efae2d2d414b8e443aaf93ce2b (diff) |
coding
Diffstat (limited to 'File Provider Extension')
-rw-r--r-- | File Provider Extension/FileProviderExtension+Actions.swift | 4 | ||||
-rw-r--r-- | File Provider Extension/FileProviderExtension+NetworkingDelegate.swift | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/File Provider Extension/FileProviderExtension+Actions.swift b/File Provider Extension/FileProviderExtension+Actions.swift index 84c2c6293..9caa21b53 100644 --- a/File Provider Extension/FileProviderExtension+Actions.swift +++ b/File Provider Extension/FileProviderExtension+Actions.swift @@ -214,7 +214,7 @@ extension FileProviderExtension { return } - let item = FileProviderItem(metadata: metadata.freeze(), parentItemIdentifier: parentItemIdentifier) + let item = FileProviderItem(metadata: tableMetadata.init(value: metadata), parentItemIdentifier: parentItemIdentifier) completionHandler(item, nil) } else { @@ -264,7 +264,7 @@ extension FileProviderExtension { // Change DB metadata.favorite = favorite NCManageDatabase.sharedInstance.addMetadata(metadata) - let item = FileProviderItem(metadata: metadata.freeze(), parentItemIdentifier: parentItemIdentifier) + let item = FileProviderItem(metadata: tableMetadata.init(value: metadata), parentItemIdentifier: parentItemIdentifier) fileProviderData.sharedInstance.fileProviderSignalUpdateWorkingSetItem[item.itemIdentifier] = item fileProviderData.sharedInstance.signalEnumerator(for: [.workingSet]) diff --git a/File Provider Extension/FileProviderExtension+NetworkingDelegate.swift b/File Provider Extension/FileProviderExtension+NetworkingDelegate.swift index 1508b11a0..d53a75563 100644 --- a/File Provider Extension/FileProviderExtension+NetworkingDelegate.swift +++ b/File Provider Extension/FileProviderExtension+NetworkingDelegate.swift @@ -75,7 +75,7 @@ extension FileProviderExtension: NCNetworkingDelegate { } // Signal update - item = FileProviderItem(metadata: metadata.freeze(), parentItemIdentifier: parentItemIdentifier) + item = FileProviderItem(metadata: tableMetadata.init(value: metadata), parentItemIdentifier: parentItemIdentifier) fileProviderData.sharedInstance.fileProviderSignalUpdateContainerItem[item.itemIdentifier] = item fileProviderData.sharedInstance.fileProviderSignalUpdateWorkingSetItem[item.itemIdentifier] = item fileProviderData.sharedInstance.signalEnumerator(for: [parentItemIdentifier, .workingSet]) |