mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 21:40:29 +00:00
macOS: move progressReport to OSSurfaceView
This commit is contained in:
@@ -28,6 +28,9 @@ extension Ghostty {
|
||||
// The hovered URL string
|
||||
@Published var hoverUrl: String?
|
||||
|
||||
// The progress report (if any)
|
||||
@Published var progressReport: Action.ProgressReport?
|
||||
|
||||
init(id: UUID?, frame: CGRect) {
|
||||
self.id = id ?? UUID()
|
||||
super.init(frame: frame)
|
||||
|
||||
@@ -20,7 +20,7 @@ extension Ghostty {
|
||||
}
|
||||
|
||||
// The progress report (if any)
|
||||
@Published var progressReport: Action.ProgressReport? {
|
||||
override var progressReport: Action.ProgressReport? {
|
||||
didSet {
|
||||
// Cancel any existing timer
|
||||
progressReportTimer?.invalidate()
|
||||
|
||||
@@ -8,9 +8,6 @@ extension Ghostty {
|
||||
// changed with escape codes.
|
||||
@Published private(set) var title: String = "👻"
|
||||
|
||||
// The progress report (if any)
|
||||
@Published var progressReport: Action.ProgressReport?
|
||||
|
||||
// The time this surface last became focused. This is a ContinuousClock.Instant
|
||||
// on supported platforms.
|
||||
@Published var focusInstant: ContinuousClock.Instant?
|
||||
|
||||
Reference in New Issue
Block a user