Skip to content

Commit 66a88bc

Browse files
committed
改进代码
1 parent 2a52e98 commit 66a88bc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

TeXmacs/progs/kernel/gui/menu-widget.scm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,7 +1603,8 @@
16031603
(show-auxiliary-widget #f)
16041604
(let ((actions (ahash-ref widget-type->action (cadr state))))
16051605
(when (and (pair? actions) (pair? (cdr actions)))
1606-
((cadr actions)))))))
1606+
(with close-action (second actions)
1607+
(close-action)))))))
16071608

16081609
;; 刷新辅助窗口
16091610
(tm-define (refresh-auxiliary-widget)
@@ -1616,7 +1617,8 @@
16161617
(let* ((widget-type (cadr state))
16171618
(action-list (ahash-ref widget-type->action widget-type)))
16181619
(if (and action-list (pair? action-list))
1619-
((car action-list))
1620+
(with open-action (car action-list)
1621+
(open-action))
16201622
(show-auxiliary-widget #f))))))) ;; 列表为空或未找到,隐藏窗口
16211623

16221624
(tm-define (auxiliary-widget menu-promise cmd name . opts)

0 commit comments

Comments
 (0)