mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
Reset newly added fields in ShareOptionsView correctly
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
d0195e67c3
commit
d12cdebf48
1 changed files with 5 additions and 0 deletions
|
@ -101,15 +101,20 @@ class ShareOptionsView: NSView {
|
|||
}
|
||||
|
||||
func reset() {
|
||||
shareTypePicker.select(publicLinkShareMenuItem)
|
||||
shareRecipientTextField.stringValue = ""
|
||||
labelTextField.stringValue = ""
|
||||
uploadEditPermissionCheckbox.state = .off
|
||||
hideDownloadCheckbox.state = .off
|
||||
passwordProtectCheckbox.state = .off
|
||||
passwordSecureField.isHidden = true
|
||||
passwordSecureField.stringValue = ""
|
||||
expirationDateCheckbox.state = .off
|
||||
expirationDatePicker.isHidden = true
|
||||
expirationDatePicker.dateValue = NSDate.now
|
||||
noteForRecipientCheckbox.state = .off
|
||||
noteTextField.isHidden = true
|
||||
noteTextField.stringValue = ""
|
||||
}
|
||||
|
||||
func setAllFields(enabled: Bool) {
|
||||
|
|
Loading…
Reference in a new issue