mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 08:16:13 +03:00

Took another look through #7504 after the merge and realized that the logic behind the `hasWindowButtons` property wasn't quite sound. It would return `false` if either _at least one_ button were missing in the `standardWindowButton(.theButton) == nil` sense, or if _all_ buttons were hidden in the `isHidden` sense. With this PR, the logic is rectified: `false` if _all_ buttons are missing or hidden in any sense, otherwise `true`. In practice, I suppose Ghostty won't ever instantiate a `TerminalWindow` where `standardWindowButton(.theButton) == nil`, but might as well get it right and sleep better at night.