From dc469527f8b98d9744ccaa6c85b13035571eccd4 Mon Sep 17 00:00:00 2001 From: Waheal <2035582067@qq.com> Date: Sun, 5 Oct 2025 22:28:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99MaterialUI=E7=89=88=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=9D=99=E9=BB=98=E5=90=AF=E5=8A=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v2rayN.Desktop/Views/MainWindow.axaml.cs | 3 +- .../Views/OptionSettingWindow.axaml | 100 +++++++++--------- v2rayN/v2rayN/Views/MainWindow.xaml.cs | 9 ++ v2rayN/v2rayN/Views/OptionSettingWindow.xaml | 14 +++ .../v2rayN/Views/OptionSettingWindow.xaml.cs | 1 + 5 files changed, 76 insertions(+), 51 deletions(-) diff --git a/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml.cs b/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml.cs index b379107a..73d4b0d7 100644 --- a/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml.cs +++ b/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml.cs @@ -445,7 +445,8 @@ public partial class MainWindow : WindowBase base.OnLoaded(sender, e); if (_config.UiItem.SilentStartup) { - this.Hide(); + ShowHideWindow(false); + _config.UiItem.ShowInTaskbar = true; } RestoreUI(); } diff --git a/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml b/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml index 750b533c..062e5955 100644 --- a/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml +++ b/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml @@ -340,7 +340,7 @@ + RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto"> + + + + + + - - - - - - + + + vm.EnableUpdateSubOnlyRemarksExist, v => v.togEnableUpdateSubOnlyRemarksExist.IsChecked).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.EnableSecurityProtocolTls13, v => v.togEnableSecurityProtocolTls13.IsChecked).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.AutoHideStartup, v => v.togAutoHideStartup.IsChecked).DisposeWith(disposables); + this.Bind(ViewModel, vm => vm.SilentStartup, v => v.togSilentStartup.IsChecked).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.EnableDragDropSort, v => v.togEnableDragDropSort.IsChecked).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.DoubleClick2Activate, v => v.togDoubleClick2Activate.IsChecked).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.AutoUpdateInterval, v => v.txtautoUpdateInterval.Text).DisposeWith(disposables);