https://github.com/2dust/v2rayN/issues/6932
This commit is contained in:
2dust
2025-03-18 16:18:27 +08:00
parent f1ef5a1f51
commit c3e56e84f1
7 changed files with 40 additions and 11 deletions
@@ -247,7 +247,7 @@ namespace v2rayN.Desktop.Views
case EViewAction.AddServerViaClipboard:
var clipboardData = await AvaUtils.GetClipboardData(this);
if (ViewModel != null)
if (clipboardData.IsNotEmpty() && ViewModel != null)
{
await ViewModel.AddServerViaClipboardAsync(clipboardData);
}
@@ -315,7 +315,7 @@ namespace v2rayN.Desktop.Views
{
case Key.V:
var clipboardData = await AvaUtils.GetClipboardData(this);
if (ViewModel != null)
if (clipboardData.IsNotEmpty() && ViewModel != null)
{
await ViewModel.AddServerViaClipboardAsync(clipboardData);
}