From 3f3f478f6a6aeeb38fb31cbf0d4ef3ea53f0a2aa Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 16 Jul 2024 19:18:25 +0800 Subject: [PATCH] Add method to remove finished sync action in FileProviderExt Signed-off-by: Claudio Cambra --- .../FileProviderExt/FileProviderExtension.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension.swift index 2a47f37e2..bd4c5b33f 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension.swift @@ -83,6 +83,13 @@ import OSLog updatedSyncStateReporting(oldActions: oldActions) } + func removeSyncAction(_ actionId: UUID) { + let oldActions = syncActions + syncActions.remove(actionId) + errorActions.remove(actionId) + updatedSyncStateReporting(oldActions: oldActions) + } + // MARK: - NSFileProviderReplicatedExtension protocol methods func item(