From 65e4297e12b580c7b095752b44a616642028a86e Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 31 Jul 2024 15:15:57 +0800 Subject: [PATCH] Add convenience function to stop/hide loading indicator in lock view controller Signed-off-by: Claudio Cambra --- .../FileProviderUIExt/Locking/LockViewController.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.swift index 0916041f6..cdb341653 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Locking/LockViewController.swift @@ -50,6 +50,11 @@ class LockViewController: NSViewController { actionViewController.extensionContext.completeRequest() } + private func stopIndicatingLoading() { + loadingIndicator.stopAnimation(self) + loadingIndicator.isHidden = true + } + private func presentError(_ error: String) { Logger.lockViewController.error("Error: \(error, privacy: .public)") descriptionLabel.stringValue = "Error: \(error)"