macos: hook up the action for the slide terminal

This commit is contained in:
Mitchell Hashimoto
2024-09-27 13:39:25 -07:00
parent 7806366eec
commit 99e5e59491

View File

@ -482,6 +482,9 @@ extension Ghostty {
case GHOSTTY_ACTION_RENDERER_HEALTH:
rendererHealth(app, target: target, v: action.action.renderer_health)
case GHOSTTY_ACTION_TOGGLE_SLIDE_TERMINAL:
toggleSlideTerminal(app, target: target)
case GHOSTTY_ACTION_CLOSE_ALL_WINDOWS:
fallthrough
case GHOSTTY_ACTION_TOGGLE_TAB_OVERVIEW:
@ -830,6 +833,14 @@ extension Ghostty {
}
}
private static func toggleSlideTerminal(
_ app: ghostty_app_t,
target: ghostty_target_s
) {
guard let appDelegate = NSApplication.shared.delegate as? AppDelegate else { return }
appDelegate.toggleSlideTerminal(self)
}
private static func setTitle(
_ app: ghostty_app_t,
target: ghostty_target_s,