macos: comment why we guard

This commit is contained in:
Mitchell Hashimoto
2024-02-09 14:22:21 -08:00
parent c3dbd32462
commit 56b453a93f

View File

@ -40,6 +40,8 @@ class TerminalWindow: NSWindow {
override func updateConstraintsIfNeeded() {
super.updateConstraintsIfNeeded()
// For titlebar tabs, we want to hide the separator view so that we get rid
// of an aesthetically unpleasing shadow.
guard titlebarTabs else { return }
guard let titlebarContainer = contentView?.superview?.subviews.first(where: {