From 7a045393318ce3f08e53fb0b83eb5160edbce1e9 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Mon, 18 Mar 2024 19:17:13 +0800 Subject: [PATCH] Update form layout according to picked type when picked type changed Signed-off-by: Claudio Cambra --- .../FileProviderUIExt/ShareOptionsView.swift | 6 ++++++ .../FileProviderUIExt/ShareViewController.xib | 3 +++ 2 files changed, 9 insertions(+) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift index 41c9688dd..401f013ff 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift @@ -196,6 +196,12 @@ class ShareOptionsView: NSView { return selectedShareType } + @IBAction func shareTypePickerAction(_ sender: Any) { + if createMode { + setupCreateForm() + } + } + @IBAction func passwordCheckboxAction(_ sender: Any) { passwordSecureField.isHidden = passwordProtectCheckbox.state == .off } diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib index 857d01cbb..a797c5e9b 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib @@ -257,6 +257,9 @@ + + + -- 2.30.2