mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 12:35:52 +03:00
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:
parent
c7d2ed3fcb
commit
65e4297e12
1 changed files with 5 additions and 0 deletions
|
@ -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)"
|
||||
|
|
Loading…
Reference in a new issue