Bug fix
This commit is contained in:
@@ -2,7 +2,6 @@ using DynamicData;
|
|||||||
using DynamicData.Binding;
|
using DynamicData.Binding;
|
||||||
using ReactiveUI;
|
using ReactiveUI;
|
||||||
using ReactiveUI.Fody.Helpers;
|
using ReactiveUI.Fody.Helpers;
|
||||||
using Splat;
|
|
||||||
using System.Reactive;
|
using System.Reactive;
|
||||||
using System.Reactive.Linq;
|
using System.Reactive.Linq;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
@@ -15,11 +14,6 @@ namespace v2rayN.ViewModels
|
|||||||
{
|
{
|
||||||
private static Config _config;
|
private static Config _config;
|
||||||
|
|
||||||
static ClashConnectionsViewModel()
|
|
||||||
{
|
|
||||||
_config = LazyConfig.Instance.GetConfig();
|
|
||||||
}
|
|
||||||
|
|
||||||
private IObservableCollection<ClashConnectionModel> _connectionItems = new ObservableCollectionExtended<ClashConnectionModel>();
|
private IObservableCollection<ClashConnectionModel> _connectionItems = new ObservableCollectionExtended<ClashConnectionModel>();
|
||||||
|
|
||||||
public IObservableCollection<ClashConnectionModel> ConnectionItems => _connectionItems;
|
public IObservableCollection<ClashConnectionModel> ConnectionItems => _connectionItems;
|
||||||
@@ -38,6 +32,7 @@ namespace v2rayN.ViewModels
|
|||||||
|
|
||||||
public ClashConnectionsViewModel()
|
public ClashConnectionsViewModel()
|
||||||
{
|
{
|
||||||
|
_config = LazyConfig.Instance.GetConfig();
|
||||||
SortingSelected = _config.clashUIItem.connectionsSorting;
|
SortingSelected = _config.clashUIItem.connectionsSorting;
|
||||||
AutoRefresh = _config.clashUIItem.connectionsAutoRefresh;
|
AutoRefresh = _config.clashUIItem.connectionsAutoRefresh;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user