mirror of
https://github.com/bolucat/Archive.git
synced 2025-10-10 02:20:33 +08:00
Update On Sun Aug 31 20:34:09 CEST 2025
This commit is contained in:
@@ -9,8 +9,7 @@ public class RoutingSettingViewModel : MyReactiveObject
|
||||
{
|
||||
#region Reactive
|
||||
|
||||
private IObservableCollection<RoutingItemModel> _routingItems = new ObservableCollectionExtended<RoutingItemModel>();
|
||||
public IObservableCollection<RoutingItemModel> RoutingItems => _routingItems;
|
||||
public IObservableCollection<RoutingItemModel> RoutingItems { get; } = new ObservableCollectionExtended<RoutingItemModel>();
|
||||
|
||||
[Reactive]
|
||||
public RoutingItemModel SelectedSource { get; set; }
|
||||
@@ -82,7 +81,7 @@ public class RoutingSettingViewModel : MyReactiveObject
|
||||
|
||||
public async Task RefreshRoutingItems()
|
||||
{
|
||||
_routingItems.Clear();
|
||||
RoutingItems.Clear();
|
||||
|
||||
var routings = await AppManager.Instance.RoutingItems();
|
||||
foreach (var item in routings)
|
||||
@@ -98,7 +97,7 @@ public class RoutingSettingViewModel : MyReactiveObject
|
||||
CustomRulesetPath4Singbox = item.CustomRulesetPath4Singbox,
|
||||
Sort = item.Sort,
|
||||
};
|
||||
_routingItems.Add(it);
|
||||
RoutingItems.Add(it);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user