From c189f2952fb530ab148fa0a4983a5b82898b6632 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 16 Jul 2024 19:18:16 +0800 Subject: [PATCH] Add method to mark action as error 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 e77d4e4df..2a47f37e2 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension.swift @@ -76,6 +76,13 @@ import OSLog updatedSyncStateReporting(oldActions: oldActions) } + func insertErrorAction(_ actionId: UUID) { + let oldActions = syncActions + syncActions.remove(actionId) + errorActions.insert(actionId) + updatedSyncStateReporting(oldActions: oldActions) + } + // MARK: - NSFileProviderReplicatedExtension protocol methods func item(