From: Claudio Cambra Date: Wed, 17 Apr 2024 18:07:48 +0000 (+0800) Subject: Make sure network error is shown in UI instead of generic error X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~7^2~44^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=389af8a62cfb42fe9dd564d142671155345ee1e9;p=nextcloud-desktop.git Make sure network error is shown in UI instead of generic error Signed-off-by: Claudio Cambra --- diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareTableViewDataSource.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareTableViewDataSource.swift index 70aeb8c50..3cca1d1a9 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareTableViewDataSource.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareTableViewDataSource.swift @@ -99,6 +99,7 @@ class ShareTableViewDataSource: NSObject, NSTableViewDataSource, NSTableViewDele account = convertedAccount await sharesTableView?.deselectAll(self) capabilities = await fetchCapabilities() + guard capabilities != nil else { return } guard capabilities?.filesSharing?.apiEnabled == true else { presentError("Server does not support shares.") return