mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-03 13:48:52 +00:00
Bug fix
This commit is contained in:
parent
79085af994
commit
9fdf6c6c32
2 changed files with 3 additions and 2 deletions
|
@ -63,7 +63,7 @@ namespace ServiceLib.ViewModels
|
||||||
_noticeHandler?.Enqueue(ResUI.FillServerAddressCustom);
|
_noticeHandler?.Enqueue(ResUI.FillServerAddressCustom);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SelectedSource.coreType = (ECoreType)Enum.Parse(typeof(ECoreType), CoreType);
|
SelectedSource.coreType = CoreType.IsNullOrEmpty() ? null : (ECoreType)Enum.Parse(typeof(ECoreType), CoreType);
|
||||||
|
|
||||||
if (ConfigHandler.EditCustomServer(_config, SelectedSource) == 0)
|
if (ConfigHandler.EditCustomServer(_config, SelectedSource) == 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,6 +9,7 @@ namespace ServiceLib.ViewModels
|
||||||
{
|
{
|
||||||
[Reactive]
|
[Reactive]
|
||||||
public ProfileItem SelectedSource { get; set; }
|
public ProfileItem SelectedSource { get; set; }
|
||||||
|
|
||||||
[Reactive]
|
[Reactive]
|
||||||
public string? CoreType { get; set; }
|
public string? CoreType { get; set; }
|
||||||
|
|
||||||
|
@ -82,7 +83,7 @@ namespace ServiceLib.ViewModels
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SelectedSource.coreType = (ECoreType)Enum.Parse(typeof(ECoreType), CoreType);
|
SelectedSource.coreType = CoreType.IsNullOrEmpty() ? null : (ECoreType)Enum.Parse(typeof(ECoreType), CoreType);
|
||||||
|
|
||||||
if (ConfigHandler.AddServer(_config, SelectedSource) == 0)
|
if (ConfigHandler.AddServer(_config, SelectedSource) == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue