--- a/ui/winui/toolkit.cpp Sat Jan 27 17:50:19 2024 +0100 +++ b/ui/winui/toolkit.cpp Sun Jan 28 16:31:34 2024 +0100 @@ -34,6 +34,7 @@ #include <cx/mempool.h> #include "../common/context.h" +#include "../common/document.h" #include "../common/toolbar.h" #include "icons.h" @@ -157,6 +158,8 @@ //ui_appsdk_bootstrap(); + uic_init_global_context(); + uic_docmgr_init(); uic_toolbar_init(); }