diff -r 73c8a3780c72 -r 641dcc79e0ef ui/winui/toolkit.cpp --- a/ui/winui/toolkit.cpp Sun Nov 10 09:12:30 2024 +0100 +++ b/ui/winui/toolkit.cpp Sun Nov 10 15:30:46 2024 +0100 @@ -235,17 +235,9 @@ } void ui_close(UiObject* obj) { - -} - -static void ui_job_finished(UiJob *job) { - UiEvent event; - event.obj = job->obj; - event.window = job->obj->window; - event.document = job->obj->ctx->document; - event.intval = 0; - event.eventdata = NULL; - job->finish_callback(&event, job->finish_data); + if (obj->wobj) { + obj->wobj->window.Close(); + } } static void ui_job_thread(UiJob* job) {