]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Properly handle failure state when creating new share in share options view
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 6 Mar 2024 17:12:19 +0000 (01:12 +0800)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 17 Apr 2024 08:38:59 +0000 (16:38 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift

index ef4274261e7f47528fa1ed747ce18ca796a96df0..b8ecf3eae46d99d9c398687e3c3d9c7b60bfd1bd 100644 (file)
@@ -200,8 +200,11 @@ class ShareOptionsView: NSView {
                 )
                 if let error = error, error != .success {
                     dataSource.uiDelegate?.showError("Error creating: \(error.errorDescription)")
+                    setAllFields(enabled: true)
+                } else {
+                    dataSource.uiDelegate?.hideOptions()
+                    await dataSource.reload()
                 }
-                await dataSource.reload()
                 return
             }