Fixed conversion error between string and enum

This commit is contained in:
johnseth97
2024-10-24 23:06:18 -04:00
parent c3efda93f4
commit 6c37fe2c26

View File

@ -243,7 +243,7 @@ class BaseTerminalController: NSWindowController,
guard let window else { return } guard let window else { return }
// Get the current working directory from the focused surface // Get the current working directory from the focused surface
if ghostty.config.macosTitlebarProxyIcon == "visible", let pwd = focusedSurface?.pwd { if ghostty.config.macosTitlebarProxyIcon == .visible, let pwd = focusedSurface?.pwd {
// Set the window's representedURL to the current working directory // Set the window's representedURL to the current working directory
window.representedURL = URL(fileURLWithPath: pwd) window.representedURL = URL(fileURLWithPath: pwd)
} else { } else {