From 9ccd190dc102291e3850d998756d7e6b5711968f Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 7 Mar 2024 02:00:41 +0800 Subject: [PATCH] Adapt visibility of expiration date field upon toggling checkbox Signed-off-by: Claudio Cambra --- .../FileProviderUIExt/ShareOptionsView.swift | 4 ++++ .../FileProviderUIExt/ShareViewController.xib | 3 +++ 2 files changed, 7 insertions(+) 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 @@ + + + -- 2.30.2