mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-19 03:21:18 +00:00
core: app needsConfirmQuit to streamline quitting if no active sessions
This commit is contained in:
@@ -787,6 +787,11 @@ pub const CAPI = struct {
|
||||
};
|
||||
}
|
||||
|
||||
/// Returns true if the app needs to confirm quitting.
|
||||
export fn ghostty_app_needs_confirm_quit(v: *App) bool {
|
||||
return v.core_app.needsConfirmQuit();
|
||||
}
|
||||
|
||||
/// Returns initial surface options.
|
||||
export fn ghostty_surface_config_new() apprt.Surface.Options {
|
||||
return .{};
|
||||
|
||||
Reference in New Issue
Block a user