Force Ghostty to be active if not
parent
8600954526
commit
8beeebc21d
|
|
@ -98,6 +98,11 @@ struct NewTerminalIntent: AppIntent {
|
||||||
parent = nil
|
parent = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
defer {
|
||||||
|
if !NSApp.isActive {
|
||||||
|
NSApp.activate(ignoringOtherApps: true)
|
||||||
|
}
|
||||||
|
}
|
||||||
switch location {
|
switch location {
|
||||||
case .window:
|
case .window:
|
||||||
let newController = TerminalController.newWindow(
|
let newController = TerminalController.newWindow(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue