macos: reload config MUST go through Zig core

This commit is contained in:
Mitchell Hashimoto
2023-09-11 15:20:31 -07:00
parent 42bbcbfb9b
commit 2f0905b60c
3 changed files with 28 additions and 17 deletions

View File

@@ -779,6 +779,14 @@ pub const CAPI = struct {
};
}
/// Reload the configuration.
export fn ghostty_app_reload_config(v: *App) void {
_ = v.reloadConfig() catch |err| {
log.err("error reloading config err={}", .{err});
return;
};
}
/// Returns initial surface options.
export fn ghostty_surface_config_new() apprt.Surface.Options {
return .{};