Home

xmn / bettertrumpet

publicxammen/BetterTrumpet· sync paused
Overview Code History Branches Pull requestsIssuesInsights
master
HomeOverview Code PRsIssues

fix: close flyout on ItemsSource inconsistency to break crash-loop

4 weeks ago

cdad9a2
Authored
xammen8/24/2026, 10:26:31 PM
When the VirtualizingStackPanel throws InvalidOperationException during
device churn (rapid disconnect/reconnect), the crash handler marks it as
handled but the flyout stays open — every subsequent layout pass throws
again, producing ~20 error dialogs in 20 seconds.

Now OnWindowsSizeInvalidated catches the exception and closes the flyout
immediately via ChangeState(Closing_Stage1), breaking the loop.

Parent153bbc6

1 file changed
  • EarTrumpet/UI/Views/FlyoutWindow.xaml.cs+18−1