Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 在显示提醒特效时可以直接关闭特效窗口,并导致再次显示特效时报错 #103

Closed
5 tasks done
HelloWRC opened this issue Apr 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@HelloWRC
Copy link
Member

检查清单

  • 我已经在 Issues 中找过我要提出的问题,没有找到相同问题的ISSUE。
  • 我已经详细阅读过应用的帮助文档,但我的问题没有得到解答。
  • 我已确认我要反馈的问题还没有在 dev 分支上修复。
  • 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(这些问题应当在 Discussion 板块提出。)

重现步骤

  1. 开启显示提醒特效功能,并等待提醒显示。
  2. 在显示提醒特效时按下 Alt + F4,此时提醒特效窗口被关闭。
  3. 等待下一个提醒。
  4. 当下一个提醒显示时,无法显示提醒特效窗口,并弹出错误报告。

期望的行为

提醒特效窗口不会被手动关闭或最小化。

实际结果

提醒特效窗口可以被手动关闭,并在尝试再次显示时报错。

堆栈跟踪(可选)

System.InvalidOperationException: 关闭窗口后,无法设置可见性,也无法调用 Show、ShowDialogor 或 WindowInteropHelper.EnsureHandle。
   at System.Windows.Window.VerifyCanShow()
   at System.Windows.Window.Show()
   at ClassIsland.Views.TopmostEffectWindow.EffectControlsOnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) in E:\Coding\ClassIsland\ClassIsland\Views\TopmostEffectWindow.xaml.cs:line 53
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at ClassIsland.Views.TopmostEffectWindow.PlayEffect(INotificationEffectControl effect) in E:\Coding\ClassIsland\ClassIsland\Views\TopmostEffectWindow.xaml.cs:line 71
   at ClassIsland.MainWindow.ProcessNotification() in E:\Coding\ClassIsland\ClassIsland\MainWindow.xaml.cs:line 469
   at ClassIsland.MainWindow.UpdateTimerOnTick(Object sender, EventArgs e) in E:\Coding\ClassIsland\ClassIsland\MainWindow.xaml.cs:line 386
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   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)

应用版本

1.3.3.1-Firefly-83d2987(dev)

操作系统版本

10.0.22631.3374

最后一步

  • 我认为上述的描述已经足以详细,以允许开发人员能复现该问题
@HelloWRC HelloWRC added the bug Something isn't working label Apr 26, 2024
@HelloWRC HelloWRC self-assigned this Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant