--- a/ui/common/context.c Thu Apr 16 17:41:35 2026 +0200 +++ b/ui/common/context.c Fri Apr 17 13:21:11 2026 +0200 @@ -152,6 +152,8 @@ var_ctx = var_ctx->parent; } + + ui_update_action_bindings(ctx); } static void uic_context_unbind_vars(UiContext *ctx) { @@ -194,6 +196,8 @@ UiContext *docctx = ui_document_context(document); uic_context_unbind_vars(docctx); // unbind all doc/subdoc vars from the parent docctx->parent = NULL; + + ui_update_action_bindings(ctx); } void uic_context_detach_all(UiContext *ctx) { @@ -211,6 +215,7 @@ } cxListFree(ls); + ui_update_action_bindings(ctx); } static UiVar* ctx_getvar(UiContext *ctx, CxHashKey key) {