mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: remove confirmation option for close terminal
This commit is contained in:
@ -12,13 +12,6 @@ struct CloseTerminalIntent: AppIntent {
|
||||
)
|
||||
var terminal: TerminalEntity
|
||||
|
||||
@Parameter(
|
||||
title: "Command",
|
||||
description: "Command to execute instead of the default shell.",
|
||||
default: true
|
||||
)
|
||||
var confirm: Bool
|
||||
|
||||
@available(macOS 26.0, *)
|
||||
static var supportedModes: IntentModes = .background
|
||||
|
||||
@ -32,7 +25,7 @@ struct CloseTerminalIntent: AppIntent {
|
||||
return .result()
|
||||
}
|
||||
|
||||
controller.closeSurface(surfaceView, withConfirmation: confirm)
|
||||
controller.closeSurface(surfaceView, withConfirmation: false)
|
||||
return .result()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user