From: Claudio Cambra Date: Wed, 6 Mar 2024 18:00:41 +0000 (+0800) Subject: Adapt visibility of expiration date field upon toggling checkbox X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~7^2~46^2~46 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9ccd190dc102291e3850d998756d7e6b5711968f;p=nextcloud-desktop.git Adapt visibility of expiration date field upon toggling checkbox Signed-off-by: Claudio Cambra --- diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift index 914f50ee2..463a2b362 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift @@ -139,6 +139,10 @@ class ShareOptionsView: NSView { passwordSecureField.isHidden = passwordProtectCheckbox.state == .off } + @IBAction func expirationDateCheckboxAction(_ sender: Any) { + expirationDatePicker.isHidden = expirationDateCheckbox.state == .off + } + @IBAction func save(_ sender: Any) { Task { @MainActor in let password = passwordProtectCheckbox.state == .on diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib index 5d02b3704..3f0162794 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib @@ -315,6 +315,9 @@ + + +