mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-16 12:35:46 +00:00
Allow empty remarks when editing proxy nodes
This commit is contained in:
parent
ba8ca97b2e
commit
a8dbe721a2
2 changed files with 0 additions and 13 deletions
|
|
@ -38,13 +38,6 @@ public class AddServer2ViewModel : MyReactiveObject
|
||||||
|
|
||||||
private async Task SaveServerAsync()
|
private async Task SaveServerAsync()
|
||||||
{
|
{
|
||||||
var remarks = SelectedSource.Remarks;
|
|
||||||
if (remarks.IsNullOrEmpty())
|
|
||||||
{
|
|
||||||
NoticeManager.Instance.Enqueue(ResUI.PleaseFillRemarks);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (SelectedSource.Address.IsNullOrEmpty())
|
if (SelectedSource.Address.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
NoticeManager.Instance.Enqueue(ResUI.FillServerAddressCustom);
|
NoticeManager.Instance.Enqueue(ResUI.FillServerAddressCustom);
|
||||||
|
|
|
||||||
|
|
@ -127,12 +127,6 @@ public class AddServerViewModel : MyReactiveObject
|
||||||
|
|
||||||
private async Task SaveServerAsync()
|
private async Task SaveServerAsync()
|
||||||
{
|
{
|
||||||
if (SelectedSource.Remarks.IsNullOrEmpty())
|
|
||||||
{
|
|
||||||
NoticeManager.Instance.Enqueue(ResUI.PleaseFillRemarks);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (SelectedSource.Address.IsNullOrEmpty())
|
if (SelectedSource.Address.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
NoticeManager.Instance.Enqueue(ResUI.FillServerAddress);
|
NoticeManager.Instance.Enqueue(ResUI.FillServerAddress);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue