macOS: move `healthy` and `error` to `OSSurfaceView`
parent
d38301bb9f
commit
3936069297
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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?
|
||||
|
||||
|
|
|
|||
|
|
@ -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?
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue