mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Reduce ghost emoji flash in title bar
This commit is contained in:
@ -56,15 +56,10 @@ struct TerminalView<ViewModel: TerminalViewModel>: View {
|
|||||||
|
|
||||||
// The title for our window
|
// The title for our window
|
||||||
private var title: String {
|
private var title: String {
|
||||||
var title = "👻"
|
if let surfaceTitle = surfaceTitle, !surfaceTitle.isEmpty {
|
||||||
|
return surfaceTitle
|
||||||
if let surfaceTitle = surfaceTitle {
|
|
||||||
if (surfaceTitle.count > 0) {
|
|
||||||
title = surfaceTitle
|
|
||||||
}
|
}
|
||||||
}
|
return "👻"
|
||||||
|
|
||||||
return title
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// The pwd of the focused surface as a URL
|
// The pwd of the focused surface as a URL
|
||||||
|
@ -12,7 +12,7 @@ extension Ghostty {
|
|||||||
// The current title of the surface as defined by the pty. This can be
|
// The current title of the surface as defined by the pty. This can be
|
||||||
// changed with escape codes. This is public because the callbacks go
|
// changed with escape codes. This is public because the callbacks go
|
||||||
// to the app level and it is set from there.
|
// to the app level and it is set from there.
|
||||||
@Published private(set) var title: String = "👻"
|
@Published private(set) var title: String = ""
|
||||||
|
|
||||||
// The current pwd of the surface as defined by the pty. This can be
|
// The current pwd of the surface as defined by the pty. This can be
|
||||||
// changed with escape codes.
|
// changed with escape codes.
|
||||||
|
Reference in New Issue
Block a user