mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-23 21:05:44 +03:00
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:
parent
ce1bf89a99
commit
3bb6f43bdf
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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"/>
|
||||
|
|
Loading…
Reference in a new issue