fix error set for function return signature

This commit is contained in:
Jeffrey C. Ollie
2025-07-07 11:48:08 -05:00
parent 28c7083876
commit 3d89a68fff
2 changed files with 2 additions and 2 deletions

View File

@ -847,7 +847,7 @@ fn toggleCommandPalette(_: *App, target: apprt.Target) !void {
}
}
fn showChildExited(_: *App, target: apprt.Target, value: apprt.surface.Message.ChildExited) (error{})!bool {
fn showChildExited(_: *App, target: apprt.Target, value: apprt.surface.Message.ChildExited) error{}!bool {
switch (target) {
.app => return false,
.surface => |surface| return try surface.rt_surface.showChildExited(value),

View File

@ -2504,7 +2504,7 @@ fn gtkStreamEnded(media_file: *gtk.MediaFile, _: *gobject.ParamSpec, _: ?*anyopa
media_file.unref();
}
pub fn showChildExited(self: *Surface, info: apprt.surface.Message.ChildExited) (error{})!bool {
pub fn showChildExited(self: *Surface, info: apprt.surface.Message.ChildExited) error{}!bool {
if (!adw_version.supportsBanner()) return false;
const warning_box = gtk.Box.new(.vertical, 0);