Update form layout according to picked type when picked type changed

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-03-18 19:17:13 +08:00
parent ce1bf89a99
commit 3bb6f43bdf
2 changed files with 9 additions and 0 deletions

View 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
}

View file

@ -257,6 +257,9 @@
</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"/>