From 5dac8fba96062391932aec4f29f4c20f2a6193ac Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 4 Nov 2023 20:48:18 -0700 Subject: [PATCH] macos: paste protection text should be selectable --- .../Features/Paste Protection/PasteProtectionController.swift | 2 +- .../Sources/Features/Paste Protection/PasteProtectionView.swift | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/macos/Sources/Features/Paste Protection/PasteProtectionController.swift b/macos/Sources/Features/Paste Protection/PasteProtectionController.swift index ef0668c02..5da7b174f 100644 --- a/macos/Sources/Features/Paste Protection/PasteProtectionController.swift +++ b/macos/Sources/Features/Paste Protection/PasteProtectionController.swift @@ -22,7 +22,7 @@ class PasteProtectionController: NSWindowController { override func windowDidLoad() { guard let window = window else { return } window.contentView = NSHostingView(rootView: PasteProtectionView( - contents: "Hello", + contents: "Hello\nWorld", delegate: delegate )) } diff --git a/macos/Sources/Features/Paste Protection/PasteProtectionView.swift b/macos/Sources/Features/Paste Protection/PasteProtectionView.swift index 6c1cd08d2..5a4e1c348 100644 --- a/macos/Sources/Features/Paste Protection/PasteProtectionView.swift +++ b/macos/Sources/Features/Paste Protection/PasteProtectionView.swift @@ -29,7 +29,6 @@ struct PasteProtectionView: View { } TextEditor(text: .constant(contents)) - .disabled(true) .textSelection(.enabled) .font(.system(.body, design: .monospaced)) .padding(.all, 4)