From 0e50bc774e9e1e08f73be273876116165bbcc693 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 12 Mar 2024 14:27:35 +0800 Subject: [PATCH] Adapt visibility of note recipient text 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 463a2b362..7201bc564 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareOptionsView.swift @@ -143,6 +143,10 @@ class ShareOptionsView: NSView { expirationDatePicker.isHidden = expirationDateCheckbox.state == .off } + @IBAction func noteForRecipientCheckboxAction(_ sender: Any) { + noteTextField.isHidden = noteForRecipientCheckbox.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 3f0162794..857d01cbb 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.xib @@ -336,6 +336,9 @@ + + + -- 2.30.2