mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-06 05:17:50 +00:00
Force Ghostty to be active if not
This commit is contained in:
@@ -98,6 +98,11 @@ struct NewTerminalIntent: AppIntent {
|
||||
parent = nil
|
||||
}
|
||||
|
||||
defer {
|
||||
if !NSApp.isActive {
|
||||
NSApp.activate(ignoringOtherApps: true)
|
||||
}
|
||||
}
|
||||
switch location {
|
||||
case .window:
|
||||
let newController = TerminalController.newWindow(
|
||||
|
||||
Reference in New Issue
Block a user