mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
Add method to show error in data source ui delegate
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
9d6db4fa45
commit
24ce9a1e1e
2 changed files with 6 additions and 0 deletions
|
@ -126,4 +126,9 @@ class ShareViewController: NSViewController, ShareViewDataSourceUIDelegate {
|
|||
splitView.addArrangedSubview(optionsView)
|
||||
optionsView.isHidden = false
|
||||
}
|
||||
|
||||
func showError(_ errorString: String) {
|
||||
errorMessageStackView.isHidden = false
|
||||
errorTextLabel.stringValue = errorString
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,4 +13,5 @@ protocol ShareViewDataSourceUIDelegate {
|
|||
func fetchFinished()
|
||||
func hideOptions()
|
||||
func showOptions(share: NKShare)
|
||||
func showError(_ errorString: String)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue