mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
macOS: remove @DeferredProperty usage from TerminalEntity (#7799)
This fixes an Apple Shortcuts crash for macOS 15 and earlier. Unfortunately it looks like we can't guard these with `@available`. I'm going to report an Apple Feedback about this but for now this gets shortcuts working on macOS 15 and earlier.
This commit is contained in:
@ -14,26 +14,6 @@ struct TerminalEntity: AppEntity {
|
||||
@Property(title: "Kind")
|
||||
var kind: Kind
|
||||
|
||||
@MainActor
|
||||
@DeferredProperty(title: "Full Contents")
|
||||
@available(macOS 26.0, *)
|
||||
var screenContents: String? {
|
||||
get async {
|
||||
guard let surfaceView else { return nil }
|
||||
return surfaceView.cachedScreenContents.get()
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@DeferredProperty(title: "Visible Contents")
|
||||
@available(macOS 26.0, *)
|
||||
var visibleContents: String? {
|
||||
get async {
|
||||
guard let surfaceView else { return nil }
|
||||
return surfaceView.cachedVisibleContents.get()
|
||||
}
|
||||
}
|
||||
|
||||
var screenshot: Image?
|
||||
|
||||
static var typeDisplayRepresentation: TypeDisplayRepresentation {
|
||||
|
Reference in New Issue
Block a user