mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 17:26:09 +03:00
fix error set for function return signature
This commit is contained in:
@ -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),
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user