Add convenience function to stop/hide loading indicator in lock view controller

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-07-31 15:15:57 +08:00 committed by Matthieu Gallien
parent c7d2ed3fcb
commit 65e4297e12

View file

@ -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)"