diff --git a/clashN/clashN/Views/ProfilesView.xaml.cs b/clashN/clashN/Views/ProfilesView.xaml.cs index cc7a62e..d1e8187 100644 --- a/clashN/clashN/Views/ProfilesView.xaml.cs +++ b/clashN/clashN/Views/ProfilesView.xaml.cs @@ -28,7 +28,7 @@ namespace clashN.Views this.WhenActivated(disposables => { - this.OneWayBind(ViewModel, vm => vm.ProfileItems, v => v.lstProfiles.ItemsSource); + this.OneWayBind(ViewModel, vm => vm.ProfileItems, v => v.lstProfiles.ItemsSource).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.SelectedSource, v => v.lstProfiles.SelectedItem).DisposeWith(disposables); diff --git a/clashN/clashN/Views/ProxiesView.xaml.cs b/clashN/clashN/Views/ProxiesView.xaml.cs index 2a5794a..4f913ad 100644 --- a/clashN/clashN/Views/ProxiesView.xaml.cs +++ b/clashN/clashN/Views/ProxiesView.xaml.cs @@ -19,10 +19,10 @@ namespace clashN.Views this.WhenActivated(disposables => { - this.OneWayBind(ViewModel, vm => vm.ProxyGroups, v => v.lstProxyGroups.ItemsSource); + this.OneWayBind(ViewModel, vm => vm.ProxyGroups, v => v.lstProxyGroups.ItemsSource).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.SelectedGroup, v => v.lstProxyGroups.SelectedItem).DisposeWith(disposables); - this.OneWayBind(ViewModel, vm => vm.ProxyDetails, v => v.lstProxyDetails.ItemsSource); + this.OneWayBind(ViewModel, vm => vm.ProxyDetails, v => v.lstProxyDetails.ItemsSource).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.SelectedDetail, v => v.lstProxyDetails.SelectedItem).DisposeWith(disposables); this.BindCommand(ViewModel, vm => vm.ProxiesReloadCmd, v => v.menuProxiesReload).DisposeWith(disposables);