From 31947fdcb3b926b7df7829c6149105b749d34329 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Tue, 3 Sep 2024 19:30:23 +0800 Subject: [PATCH] Bug fix https://github.com/2dust/v2rayN/issues/5635 --- v2rayN/v2rayN/Views/MainWindow.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/v2rayN/v2rayN/Views/MainWindow.xaml.cs b/v2rayN/v2rayN/Views/MainWindow.xaml.cs index 1e79c47e..5aa397c8 100644 --- a/v2rayN/v2rayN/Views/MainWindow.xaml.cs +++ b/v2rayN/v2rayN/Views/MainWindow.xaml.cs @@ -206,7 +206,10 @@ namespace v2rayN.Views private void OnProgramStarted(object state, bool timeout) { - ShowHideWindow(true); + Application.Current?.Dispatcher.Invoke((Action)(() => + { + ShowHideWindow(true); + })); } private void DelegateSnackMsg(string content)