mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03: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