From 3e9d89599d2b6ff34d45a68b3f0806c8ba4fcd41 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 5 Mar 2024 18:16:17 +0800 Subject: [PATCH] Add button to create new share in share view Signed-off-by: Claudio Cambra --- .../FileProviderUIExt/ShareOptionsView.swift | 1 + .../FileProviderUIExt/ShareViewController.xib | 22 ++++++++++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift index b25ab327d..a9fac05e6 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift @@ -26,6 +26,7 @@ class ShareOptionsView: NSView { var controller: ShareController? { didSet { cancellable?.cancel() + createMode = false update() cancellable = controller.publisher.sink { _ in self.update() } } diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib index 0d4ba929c..128761021 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib @@ -46,7 +46,7 @@ - + @@ -74,6 +74,17 @@ +