mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-05 21:07:56 +00:00
Simplify let binding in TerminalView title logic
This commit is contained in:
@@ -56,7 +56,7 @@ struct TerminalView<ViewModel: TerminalViewModel>: View {
|
||||
|
||||
// The title for our window
|
||||
private var title: String {
|
||||
if let surfaceTitle = surfaceTitle, !surfaceTitle.isEmpty {
|
||||
if let surfaceTitle, !surfaceTitle.isEmpty {
|
||||
return surfaceTitle
|
||||
}
|
||||
return "👻"
|
||||
|
||||
Reference in New Issue
Block a user