mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-25 16:41:44 +00:00
macOS: fix Main actor-isolated static property 'find' warnings
This commit is contained in:
@@ -138,9 +138,9 @@ extension Ghostty.OSSurfaceView {
|
||||
|
||||
init(
|
||||
from startSearch: Ghostty.Action.StartSearch,
|
||||
pasteboard: NSPasteboard = NSPasteboard.find
|
||||
pasteboard: NSPasteboard? = nil
|
||||
) {
|
||||
self.pasteboard = pasteboard
|
||||
self.pasteboard = pasteboard ?? .find
|
||||
if let needle = startSearch.needle, !needle.isEmpty {
|
||||
setNeedle(needle)
|
||||
writePasteboardNeedle()
|
||||
|
||||
Reference in New Issue
Block a user