mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-05 19:08:17 +00:00
macos: only process reopen if already activated
This commit is contained in:
@@ -349,6 +349,11 @@ class AppDelegate: NSObject,
|
||||
// the dock icon.
|
||||
guard TerminalController.all.isEmpty else { return true }
|
||||
|
||||
// If the application isn't active yet then we don't want to process
|
||||
// this because we're not ready. This happens sometimes in Xcode runs
|
||||
// but I haven't seen it happen in releases. I'm unsure why.
|
||||
guard applicationHasBecomeActive else { return true }
|
||||
|
||||
// No visible windows, open a new one.
|
||||
_ = TerminalController.newWindow(ghostty)
|
||||
return false
|
||||
|
Reference in New Issue
Block a user