From d12cdebf48e5b83c22d187385b657c057dadec39 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 7 Mar 2024 01:20:58 +0800 Subject: [PATCH] Reset newly added fields in ShareOptionsView correctly Signed-off-by: Claudio Cambra --- .../FileProviderUIExt/ShareOptionsView.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift index b8ecf3eae..22c3a4696 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift @@ -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) {