Skip to content

[Bug]: 编辑二级菜单失败 #155

Description

@ruka-rin

检查项

  • 此错误未被报告过(可以在这里进行搜索)
  • 我已将 ContextMenuManager 更新到最新版本
  • 我已知晓:任何不合规定的 issue 都有可能被直接关闭

Windows

Windows 11

版本

4.0.0.6

复现流程

  1. 打开程序
  2. 选择一个具有二级菜单的项目并点击[编辑子菜单项目]
  3. 进行任何一项如下的操作
  4. 点击[新建一个菜单项目]的[加号]
  5. 点击一个项目的[齿轮]图标下的[更改文本]
  6. 点击一个项目的[齿轮]图标下的[详细信息]菜单下的[更改命令]
  7. 出现报错弹窗

崩溃日志

Date: 05/17/2026 18:47:07
Exception:
System.InvalidOperationException: Only a single ContentDialog can be open at any time.
at iNKORE.UI.WPF.Modern.Controls.ContentDialog.ThrowAlreadyOpenException()
at iNKORE.UI.WPF.Modern.Controls.ContentDialog.ThrowIfHasOpenDialog(Window owner)
at iNKORE.UI.WPF.Modern.Controls.ContentDialog.ShowAsync(Window owner)
at ContextMenuManager.Methods.ContentDialogHost.RunBlocking[T](Func`2 action, MainWindow owner)
at ContextMenuManager.Controls.InputDialog.RunDialog(MainWindow owner)
at ContextMenuManager.Controls.InputDialog.ShowDialog()
at ContextMenuManager.Controls.Interfaces.ChangeTextMenuItem.ChangeText(String text)
at ContextMenuManager.Controls.Interfaces.ChangeTextMenuItem.<>c__DisplayClass0_0.<.ctor>b__0(Object sender, RoutedEventArgs e)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions