From 8a9dee72a18fda41688e422f5ecc3b7c22df7114 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 7 Mar 2024 01:12:19 +0800 Subject: [PATCH] Properly handle failure state when creating new share in share options view Signed-off-by: Claudio Cambra --- .../FileProviderUIExt/ShareOptionsView.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift index ef4274261..b8ecf3eae 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift @@ -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 } -- 2.30.2