From c2928be35dd6bcf79dd74d99258a0355037535ba Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Mon, 8 Jul 2024 17:16:49 +0800 Subject: [PATCH] Log messages are not displayed when in the background --- v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs b/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs index db9f1c4c..648dc02b 100644 --- a/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs +++ b/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs @@ -613,6 +613,10 @@ namespace v2rayN.ViewModels private void UpdateHandler(bool notify, string msg) { + if (!_showInTaskbar) + { + return; + } _noticeHandler?.SendMessage(msg); if (notify) {