From: Claudio Cambra Date: Tue, 30 Jul 2024 10:48:11 +0000 (+0800) Subject: Add convenience method to present and log errors in lock view controller X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~6^2~22^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=70d0c74b844c3d7c70cf4231caf4552643016998;p=nextcloud-desktop.git Add convenience method to present and log errors in lock view controller Signed-off-by: Claudio Cambra --- diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.swift index 2d7b47357..ae113bee7 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.swift @@ -38,4 +38,9 @@ class LockViewController: NSViewController { @IBAction func closeAction(_ sender: Any) { actionViewController.extensionContext.completeRequest() } + + private func presentError(_ error: String) { + Logger.lockViewController.error("Error: \(error, privacy: .public)") + descriptionLabel.stringValue = "Error: \(error)" + } }