From f8f7fee46149ca2ec0a2ba6f1654081945dc1dc1 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Thu, 30 Apr 2026 10:03:10 +0800 Subject: [PATCH] Disable auto-adjust main list column width desktop --- v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml | 5 ++--- .../v2rayN.Desktop/Views/OptionSettingWindow.axaml.cs | 2 +- v2rayN/v2rayN.Desktop/Views/ProfilesView.axaml.cs | 10 +++++----- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml b/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml index c48b1cdf..50c938fa 100644 --- a/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml +++ b/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml @@ -418,7 +418,7 @@ Margin="{StaticResource Margin4}" HorizontalAlignment="Left" /> - + HorizontalAlignment="Left" />--> - diff --git a/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml.cs b/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml.cs index eeb4053a..ab58081d 100644 --- a/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml.cs +++ b/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml.cs @@ -88,7 +88,7 @@ public partial class OptionSettingWindow : WindowBase this.Bind(ViewModel, vm => vm.EnableStatistics, v => v.togEnableStatistics.IsChecked).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.DisplayRealTimeSpeed, v => v.togDisplayRealTimeSpeed.IsChecked).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.KeepOlderDedupl, v => v.togKeepOlderDedupl.IsChecked).DisposeWith(disposables); - this.Bind(ViewModel, vm => vm.EnableAutoAdjustMainLvColWidth, v => v.togEnableAutoAdjustMainLvColWidth.IsChecked).DisposeWith(disposables); + //this.Bind(ViewModel, vm => vm.EnableAutoAdjustMainLvColWidth, v => v.togEnableAutoAdjustMainLvColWidth.IsChecked).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.AutoHideStartup, v => v.togAutoHideStartup.IsChecked).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.Hide2TrayWhenClose, v => v.togHide2TrayWhenClose.IsChecked).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.MacOSShowInDock, v => v.togMacOSShowInDock.IsChecked).DisposeWith(disposables); diff --git a/v2rayN/v2rayN.Desktop/Views/ProfilesView.axaml.cs b/v2rayN/v2rayN.Desktop/Views/ProfilesView.axaml.cs index cfd0d2ab..cca3378f 100644 --- a/v2rayN/v2rayN.Desktop/Views/ProfilesView.axaml.cs +++ b/v2rayN/v2rayN.Desktop/Views/ProfilesView.axaml.cs @@ -95,11 +95,11 @@ public partial class ProfilesView : ReactiveUserControl .Subscribe(_ => StorageUI()) .DisposeWith(disposables); - AppEvents.AdjustMainLvColWidthRequested - .AsObservable() - .ObserveOn(RxSchedulers.MainThreadScheduler) - .Subscribe(_ => AutofitColumnWidth()) - .DisposeWith(disposables); + //AppEvents.AdjustMainLvColWidthRequested + // .AsObservable() + // .ObserveOn(RxSchedulers.MainThreadScheduler) + // .Subscribe(_ => AutofitColumnWidth()) + // .DisposeWith(disposables); }); RestoreUI();