|
|
@ -129,17 +129,11 @@ namespace v2rayN.Views
|
|
|
|
|
|
|
|
|
|
|
|
case EViewAction.SaveFileDialog:
|
|
|
|
case EViewAction.SaveFileDialog:
|
|
|
|
if (obj is null) return false;
|
|
|
|
if (obj is null) return false;
|
|
|
|
SaveFileDialog fileDialog = new()
|
|
|
|
if (UI.SaveFileDialog(out string fileName, "Config|*.json") != true)
|
|
|
|
{
|
|
|
|
|
|
|
|
Filter = "Config|*.json",
|
|
|
|
|
|
|
|
FilterIndex = 2,
|
|
|
|
|
|
|
|
RestoreDirectory = true
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
if (fileDialog.ShowDialog() != true)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ViewModel?.Export2ClientConfigResult(fileDialog.FileName, (ProfileItem)obj);
|
|
|
|
ViewModel?.Export2ClientConfigResult(fileName, (ProfileItem)obj);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case EViewAction.AddServerWindow:
|
|
|
|
case EViewAction.AddServerWindow:
|
|
|
|