mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-07 22:28:07 +03:00
Rename LazyConfig to AppHandler
This commit is contained in:
@@ -25,7 +25,7 @@ namespace ServiceLib.ViewModels
|
||||
|
||||
public SubSettingViewModel(Func<EViewAction, object?, Task<bool>>? updateView)
|
||||
{
|
||||
_config = LazyConfig.Instance.Config;
|
||||
_config = AppHandler.Instance.Config;
|
||||
_noticeHandler = Locator.Current.GetService<NoticeHandler>();
|
||||
_updateView = updateView;
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace ServiceLib.ViewModels
|
||||
public void RefreshSubItems()
|
||||
{
|
||||
_subItems.Clear();
|
||||
_subItems.AddRange(LazyConfig.Instance.SubItems().OrderBy(t => t.sort));
|
||||
_subItems.AddRange(AppHandler.Instance.SubItems().OrderBy(t => t.sort));
|
||||
}
|
||||
|
||||
public async Task EditSubAsync(bool blNew)
|
||||
@@ -70,7 +70,7 @@ namespace ServiceLib.ViewModels
|
||||
}
|
||||
else
|
||||
{
|
||||
item = LazyConfig.Instance.GetSubItem(SelectedSource?.id);
|
||||
item = AppHandler.Instance.GetSubItem(SelectedSource?.id);
|
||||
if (item is null)
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user