diff -r 4657ec1229f2 -r 2eede3d98aba ui/winui/toolkit.cpp --- a/ui/winui/toolkit.cpp Wed Oct 30 10:14:47 2024 +0100 +++ b/ui/winui/toolkit.cpp Wed Oct 30 11:07:52 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) {