macOS: move healthy and error to OSSurfaceView

This commit is contained in:
Lukas
2026-04-12 11:59:04 +02:00
parent d38301bb9f
commit 3936069297
3 changed files with 7 additions and 14 deletions

View File

@@ -18,6 +18,13 @@ extension Ghostty {
// resized in discrete steps of a single cell.
@Published var cellSize: CGSize = .zero
// The health state of the surface. This currently only reflects the
// renderer health. In the future we may want to make this an enum.
@Published var healthy: Bool = true
// Any error while initializing the surface.
@Published var error: Error?
init(id: UUID?, frame: CGRect) {
self.id = id ?? UUID()
super.init(frame: frame)

View File

@@ -21,13 +21,6 @@ extension Ghostty {
}
}
// The health state of the surface. This currently only reflects the
// renderer health. In the future we may want to make this an enum.
@Published var healthy: Bool = true
// Any error while initializing the surface.
@Published var error: Error?
// The hovered URL string
@Published var hoverUrl: String?

View File

@@ -9,13 +9,6 @@ extension Ghostty {
// to the app level and it is set from there.
@Published var title: String = "👻"
// The health state of the surface. This currently only reflects the
// renderer health. In the future we may want to make this an enum.
@Published var healthy: Bool = true
// Any error while initializing the surface.
@Published var error: Error?
// The hovered URL
@Published var hoverUrl: String?