Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Jun 30, 2024
1 parent f4af4da commit 478cadb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions v2rayN/v2rayN/ViewModels/ClashConnectionsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using DynamicData.Binding;
using ReactiveUI;
using ReactiveUI.Fody.Helpers;
using Splat;
using System.Reactive;
using System.Reactive.Linq;
using System.Windows;
Expand All @@ -15,11 +14,6 @@ public class ClashConnectionsViewModel : ReactiveObject
{
private static Config _config;

static ClashConnectionsViewModel()
{
_config = LazyConfig.Instance.GetConfig();
}

private IObservableCollection<ClashConnectionModel> _connectionItems = new ObservableCollectionExtended<ClashConnectionModel>();

public IObservableCollection<ClashConnectionModel> ConnectionItems => _connectionItems;
Expand All @@ -38,6 +32,7 @@ static ClashConnectionsViewModel()

public ClashConnectionsViewModel()
{
_config = LazyConfig.Instance.GetConfig();
SortingSelected = _config.clashUIItem.connectionsSorting;
AutoRefresh = _config.clashUIItem.connectionsAutoRefresh;

Expand Down

0 comments on commit 478cadb

Please sign in to comment.