mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-15 09:45:00 +03:00
Improved Action Invoke
This commit is contained in:
@@ -38,9 +38,9 @@ namespace ServiceLib.ViewModels
|
||||
normalDNS2 = item2?.normalDNS ?? string.Empty;
|
||||
tunDNS2 = item2?.tunDNS ?? string.Empty;
|
||||
|
||||
SaveCmd = ReactiveCommand.Create(() =>
|
||||
SaveCmd = ReactiveCommand.CreateFromTask(async () =>
|
||||
{
|
||||
SaveSettingAsync();
|
||||
await SaveSettingAsync();
|
||||
});
|
||||
|
||||
ImportDefConfig4V2rayCmd = ReactiveCommand.Create(() =>
|
||||
@@ -65,7 +65,7 @@ namespace ServiceLib.ViewModels
|
||||
}
|
||||
else
|
||||
{
|
||||
if (normalDNS.Contains("{") || normalDNS.Contains("}"))
|
||||
if (normalDNS.Contains('{') || normalDNS.Contains('}'))
|
||||
{
|
||||
NoticeHandler.Instance.Enqueue(ResUI.FillCorrectDNSText);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user