From f3c73f7a1abc60f5f6fd6fc2816d6cb4849a463c Mon Sep 17 00:00:00 2001 From: LilDosto Date: Thu, 29 Oct 2026 03:05:03 +0300 Subject: [PATCH] perf: replace Dispatcher.Invoke with Dispatcher.BeginInvoke to avoid UI blocking --- src/KickStreamHub/Views/MainWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/KickStreamHub/Views/MainWindow.xaml.cs b/src/KickStreamHub/Views/MainWindow.xaml.cs index 169d01a..8f5c128 100644 --- a/src/KickStreamHub/Views/MainWindow.xaml.cs +++ b/src/KickStreamHub/Views/MainWindow.xaml.cs @@ -194,7 +194,7 @@ public partial class MainWindow : Window private void ViewModel_FullScreenChanged(object? sender, bool enable) { - Dispatcher.Invoke(() => + Dispatcher.BeginInvoke((Action)(() => { if (enable) {