mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 05:55:59 +03:00
Signal enumeration of locked/unlocked file
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
4012d43bb9
commit
94a783c482
1 changed files with 12 additions and 0 deletions
|
@ -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).")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue