Display checkmark when file lock completed

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-08-01 15:59:03 +08:00 committed by Matthieu Gallien
parent 820fbbd3c3
commit 71454fc40e

View file

@ -207,6 +207,10 @@ class LockViewController: NSViewController {
}
if error == .success {
descriptionLabel.stringValue = "File \(self.locking ? "locked" : "unlocked")!"
warnImage.image = NSImage(
systemSymbolName: "checkmark.circle.fill",
accessibilityDescription: "checkmark.circle.fill"
)
stopIndicatingLoading()
} else {
presentError("Could not lock file: \(error.errorDescription).")