From 44f640a330b48e6953b0ddaf72ae7e043f66c064 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 1 Aug 2024 17:36:35 +0800 Subject: [PATCH] Signal enumeration of locked/unlocked file Signed-off-by: Claudio Cambra --- .../Locking/LockViewController.swift | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.swift index d7070fc9d..f7347848a 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.swift @@ -212,6 +212,18 @@ class LockViewController: NSViewController { accessibilityDescription: "checkmark.circle.fill" ) stopIndicatingLoading() + if let manager = NSFileProviderManager(for: actionViewController.domain) { + do { + try await manager.signalEnumerator(for: itemIdentifier) + } catch let error { + presentError( + """ + Could not signal lock state change in virtual file. + Changes may take a while to be reflected on your Mac. + Error: \(error.localizedDescription) + """) + } + } } else { presentError("Could not lock file: \(error.errorDescription).") } -- 2.30.2