mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 22:15:57 +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)
|
splitView.addArrangedSubview(optionsView)
|
||||||
optionsView.isHidden = false
|
optionsView.isHidden = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func showError(_ errorString: String) {
|
||||||
|
errorMessageStackView.isHidden = false
|
||||||
|
errorTextLabel.stringValue = errorString
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,4 +13,5 @@ protocol ShareViewDataSourceUIDelegate {
|
||||||
func fetchFinished()
|
func fetchFinished()
|
||||||
func hideOptions()
|
func hideOptions()
|
||||||
func showOptions(share: NKShare)
|
func showOptions(share: NKShare)
|
||||||
|
func showError(_ errorString: String)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue