core: quit flag is reset after tick

This commit is contained in:
Mitchell Hashimoto
2023-03-27 10:10:06 -07:00
parent 41943b9a00
commit f36a35ecc9
4 changed files with 17 additions and 11 deletions

View File

@@ -390,9 +390,10 @@ pub const CAPI = struct {
/// Tick the event loop. This should be called whenever the "wakeup"
/// callback is invoked for the runtime.
export fn ghostty_app_tick(v: *App) void {
_ = v.core_app.tick(v) catch |err| {
export fn ghostty_app_tick(v: *App) bool {
return v.core_app.tick(v) catch |err| err: {
log.err("error app tick err={}", .{err});
break :err false;
};
}