macos: only show readonly badge on AppKit
parent
22b8809858
commit
43b4ed5bc0
|
|
@ -103,14 +103,7 @@ extension Ghostty {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.ghosttySurfaceView(surfaceView)
|
.ghosttySurfaceView(surfaceView)
|
||||||
|
.allowsHitTesting(false)
|
||||||
// Readonly indicator badge
|
|
||||||
if surfaceView.readonly {
|
|
||||||
ReadonlyBadge {
|
|
||||||
surfaceView.toggleReadonly(nil)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Progress report
|
// Progress report
|
||||||
if let progressReport = surfaceView.progressReport, progressReport.state != .remove {
|
if let progressReport = surfaceView.progressReport, progressReport.state != .remove {
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
|
|
@ -123,6 +116,13 @@ extension Ghostty {
|
||||||
}
|
}
|
||||||
|
|
||||||
#if canImport(AppKit)
|
#if canImport(AppKit)
|
||||||
|
// Readonly indicator badge
|
||||||
|
if surfaceView.readonly {
|
||||||
|
ReadonlyBadge {
|
||||||
|
surfaceView.toggleReadonly(nil)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// If we are in the middle of a key sequence, then we show a visual element. We only
|
// If we are in the middle of a key sequence, then we show a visual element. We only
|
||||||
// support this on macOS currently although in theory we can support mobile with keyboards!
|
// support this on macOS currently although in theory we can support mobile with keyboards!
|
||||||
if !surfaceView.keySequence.isEmpty {
|
if !surfaceView.keySequence.isEmpty {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue