mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-03 12:18:06 +03:00
add edit server menu
This commit is contained in:
@@ -84,6 +84,7 @@ namespace v2rayN.ViewModels
|
||||
public ReactiveCommand<Unit, Unit> AddServerViaClipboardCmd { get; }
|
||||
public ReactiveCommand<Unit, Unit> AddServerViaScanCmd { get; }
|
||||
//servers delete
|
||||
public ReactiveCommand<Unit, Unit> EditServerCmd { get; }
|
||||
public ReactiveCommand<Unit, Unit> RemoveServerCmd { get; }
|
||||
public ReactiveCommand<Unit, Unit> RemoveDuplicateServerCmd { get; }
|
||||
public ReactiveCommand<Unit, Unit> CopyServerCmd { get; }
|
||||
@@ -293,6 +294,10 @@ namespace v2rayN.ViewModels
|
||||
return ScanScreenTaskAsync();
|
||||
});
|
||||
//servers delete
|
||||
EditServerCmd = ReactiveCommand.Create(() =>
|
||||
{
|
||||
EditServer(false, EConfigType.Custom);
|
||||
}, canEditRemove);
|
||||
RemoveServerCmd = ReactiveCommand.Create(() =>
|
||||
{
|
||||
RemoveServer();
|
||||
|
||||
Reference in New Issue
Block a user