mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-23 03:28:35 +00:00
macos: set proper window title for focused split
This commit is contained in:
@@ -7,10 +7,12 @@ extension Ghostty {
|
||||
/// split direction by splitting the terminal.
|
||||
struct TerminalSplit: View {
|
||||
@Environment(\.ghosttyApp) private var app
|
||||
@FocusedValue(\.ghosttySurfaceTitle) private var surfaceTitle: String?
|
||||
|
||||
var body: some View {
|
||||
if let app = app {
|
||||
TerminalSplitChild(app)
|
||||
.navigationTitle(surfaceTitle ?? "Ghostty")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,11 +24,6 @@ extension Ghostty {
|
||||
case horizontal
|
||||
}
|
||||
|
||||
enum Side: Hashable {
|
||||
case TopLeft
|
||||
case BottomRight
|
||||
}
|
||||
|
||||
/// The stored state between invocations.
|
||||
class ViewState: ObservableObject {
|
||||
/// The direction of the split currently
|
||||
|
Reference in New Issue
Block a user