提交 07b7e993 编写于 作者: S SteVen Batten

fixes #104224

上级 62490057
......@@ -791,7 +791,12 @@ class SubmenuMenuActionViewItem extends BaseMenuActionViewItem {
private cleanupExistingSubmenu(force: boolean): void {
if (this.parentData.submenu && (force || (this.parentData.submenu !== this.mysubmenu))) {
this.parentData.submenu.dispose();
// disposal may throw if the submenu has already been removed
try {
this.parentData.submenu.dispose();
} catch { }
this.parentData.submenu = undefined;
this.updateAriaExpanded('false');
if (this.submenuContainer) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册