perf: replace Dispatcher.Invoke with Dispatcher.BeginInvoke to avoid UI blocking

This commit is contained in:
LilDosto 2026-10-29 03:05:03 +03:00
parent 546ef4bc76
commit f3c73f7a1a

View file

@ -194,7 +194,7 @@ public partial class MainWindow : Window
private void ViewModel_FullScreenChanged(object? sender, bool enable) private void ViewModel_FullScreenChanged(object? sender, bool enable)
{ {
Dispatcher.Invoke(() => Dispatcher.BeginInvoke((Action)(() =>
{ {
if (enable) if (enable)
{ {