From 61e42b6ff86e2478b536087444bac12364867e41 Mon Sep 17 00:00:00 2001 From: grandoth Date: Fri, 23 Jan 2026 16:02:32 -0500 Subject: [PATCH] Fix App.xaml.cs:StartShowWindowListener() null reference exception --- src/App.xaml.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/App.xaml.cs b/src/App.xaml.cs index 35d2662..e3fc397 100644 --- a/src/App.xaml.cs +++ b/src/App.xaml.cs @@ -146,10 +146,14 @@ private void StartShowWindowListener() { while (!_cancellationTokenSource.Token.IsCancellationRequested) { - if (_showWindowEvent.WaitOne(1000)) + if (_showWindowEvent == null) + { + await Task.Delay(1000); + } + else if (_showWindowEvent.WaitOne(1000)) { _showWindowEvent.Reset(); - + await Dispatcher.InvokeAsync(() => { try