Update form layout according to picked type when picked type changed
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Mon, 18 Mar 2024 11:17:13 +0000 (19:17 +0800)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 17 Apr 2024 08:39:01 +0000 (16:39 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift
shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib

index 41c9688dd061f73cc8240443997a8a410b525c27..401f013ff6e22d7c83c40bb3831680e2b42cae99 100644 (file)
@@ -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
     }
index 857d01cbb3ebf9662558a1ec2035ffe5faf82167..a797c5e9b1d313bd5848fe13760ec3dafa39ab0b 100644 (file)
                                                     </items>
                                                 </menu>
                                             </popUpButtonCell>
+                                            <connections>
+                                                <action selector="shareTypePickerAction:" target="EXb-m8-yzj" id="LN7-TC-RvV"/>
+                                            </connections>
                                         </popUpButton>
                                         <textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="f8k-Ae-oQc">
                                             <rect key="frame" x="0.0" y="240" width="460" height="22"/>