mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 07:46:12 +03:00
apprt/gtk: fix build
This commit is contained in:
@ -489,7 +489,6 @@ pub fn performAction(
|
||||
.render_inspector,
|
||||
.renderer_health,
|
||||
.color_change,
|
||||
.config_change,
|
||||
=> log.warn("unimplemented action={}", .{action}),
|
||||
}
|
||||
}
|
||||
@ -834,7 +833,7 @@ fn configChange(self: *App, new_config: *const Config) void {
|
||||
}
|
||||
}
|
||||
|
||||
fn reloadConfig(
|
||||
pub fn reloadConfig(
|
||||
self: *App,
|
||||
target: apprt.action.Target,
|
||||
opts: apprt.action.ReloadConfig,
|
||||
@ -1430,7 +1429,7 @@ fn gtkActionReloadConfig(
|
||||
) callconv(.C) void {
|
||||
const self: *App = @ptrCast(@alignCast(ud orelse return));
|
||||
self.reloadConfig(.app, .{}) catch |err| {
|
||||
log.err("error reloading configuration: {s}", .{err});
|
||||
log.err("error reloading configuration: {}", .{err});
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -203,7 +203,7 @@ const ButtonsView = struct {
|
||||
|
||||
fn gtkReloadClick(_: *c.GtkWidget, ud: ?*anyopaque) callconv(.C) void {
|
||||
const self: *ConfigErrors = @ptrCast(@alignCast(ud));
|
||||
_ = self.app.reloadConfig(.app, .{}) catch |err| {
|
||||
self.app.reloadConfig(.app, .{}) catch |err| {
|
||||
log.warn("error reloading config error={}", .{err});
|
||||
return;
|
||||
};
|
||||
|
Reference in New Issue
Block a user