Add method to show error in data source ui delegate

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-03-05 01:26:36 +08:00
parent 9d6db4fa45
commit 24ce9a1e1e
2 changed files with 6 additions and 0 deletions

View file

@ -126,4 +126,9 @@ class ShareViewController: NSViewController, ShareViewDataSourceUIDelegate {
splitView.addArrangedSubview(optionsView)
optionsView.isHidden = false
}
func showError(_ errorString: String) {
errorMessageStackView.isHidden = false
errorTextLabel.stringValue = errorString
}
}

View file

@ -13,4 +13,5 @@ protocol ShareViewDataSourceUIDelegate {
func fetchFinished()
func hideOptions()
func showOptions(share: NKShare)
func showError(_ errorString: String)
}