From 6c6de1ae7fc8313ccde77322ae69f63f3bffc9f1 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Fri, 10 Jan 2025 20:12:42 +0800 Subject: [PATCH] Improvements and Adjustments --- v2rayN/ServiceLib/Common/Utils.cs | 2 +- v2rayN/ServiceLib/ViewModels/MsgViewModel.cs | 8 ++++---- .../v2rayN.Desktop/Views/BackupAndRestoreView.axaml | 6 +++--- v2rayN/v2rayN.Desktop/Views/ClashProxiesView.axaml | 4 ++-- v2rayN/v2rayN.Desktop/Views/ThemeSettingView.axaml | 4 ++-- v2rayN/v2rayN/Views/ClashProxiesView.xaml | 12 ++++++------ v2rayN/v2rayN/v2rayN.csproj | 2 +- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/v2rayN/ServiceLib/Common/Utils.cs b/v2rayN/ServiceLib/Common/Utils.cs index 15023f2b..bae8230d 100644 --- a/v2rayN/ServiceLib/Common/Utils.cs +++ b/v2rayN/ServiceLib/Common/Utils.cs @@ -558,7 +558,7 @@ namespace ServiceLib.Common public static string GetRuntimeInfo() { - return $"{Utils.GetVersion()} | {Utils.StartupPath()} | {Utils.GetExePath()} | {Environment.OSVersion} | {(Environment.Is64BitOperatingSystem ? 64 : 32)}"; + return $"{Utils.GetVersion()} | {Utils.StartupPath()} | {Utils.GetExePath()} | {Environment.OSVersion}"; } /// diff --git a/v2rayN/ServiceLib/ViewModels/MsgViewModel.cs b/v2rayN/ServiceLib/ViewModels/MsgViewModel.cs index d5384d4d..f2ec4bb8 100644 --- a/v2rayN/ServiceLib/ViewModels/MsgViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/MsgViewModel.cs @@ -59,14 +59,14 @@ namespace ServiceLib.ViewModels { return; } - - _blLockShow = true; if (!_config.UiItem.ShowInTaskbar) { - await Task.Delay(1000); + return; } - await Task.Delay(100); + _blLockShow = true; + + await Task.Delay(500); var txt = string.Join("", _queueMsg.ToArray()); await _updateView?.Invoke(EViewAction.DispatcherShowMsg, txt); diff --git a/v2rayN/v2rayN.Desktop/Views/BackupAndRestoreView.axaml b/v2rayN/v2rayN.Desktop/Views/BackupAndRestoreView.axaml index d61dae8a..badb2061 100644 --- a/v2rayN/v2rayN.Desktop/Views/BackupAndRestoreView.axaml +++ b/v2rayN/v2rayN.Desktop/Views/BackupAndRestoreView.axaml @@ -14,14 +14,13 @@ - - + - + diff --git a/v2rayN/v2rayN.Desktop/Views/ClashProxiesView.axaml b/v2rayN/v2rayN.Desktop/Views/ClashProxiesView.axaml index 98a1d3a6..34baeaed 100644 --- a/v2rayN/v2rayN.Desktop/Views/ClashProxiesView.axaml +++ b/v2rayN/v2rayN.Desktop/Views/ClashProxiesView.axaml @@ -28,7 +28,7 @@ Text="{x:Static resx:ResUI.menuRulemode}" /> @@ -41,7 +41,7 @@ Text="{x:Static resx:ResUI.TbSorting}" /> diff --git a/v2rayN/v2rayN.Desktop/Views/ThemeSettingView.axaml b/v2rayN/v2rayN.Desktop/Views/ThemeSettingView.axaml index 39f5fffc..08727d33 100644 --- a/v2rayN/v2rayN.Desktop/Views/ThemeSettingView.axaml +++ b/v2rayN/v2rayN.Desktop/Views/ThemeSettingView.axaml @@ -15,7 +15,7 @@ @@ -33,7 +33,7 @@ - + @@ -49,7 +49,7 @@ Text="{x:Static resx:ResUI.TbSorting}" /> diff --git a/v2rayN/v2rayN/v2rayN.csproj b/v2rayN/v2rayN/v2rayN.csproj index 182c6140..53fc81b0 100644 --- a/v2rayN/v2rayN/v2rayN.csproj +++ b/v2rayN/v2rayN/v2rayN.csproj @@ -14,7 +14,7 @@ - +