Merge pull request #5 from jjw24/update_plugin_openurl_newbrowser

Wox.Plugin.URL- Open URL in new window browser
This commit is contained in:
Jeremy Wu
2019-08-20 07:38:09 +10:00
committed by GitHub
3 changed files with 33 additions and 11 deletions

View File

@@ -1,9 +1,9 @@
using System;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text.RegularExpressions;
using System.Windows.Controls;
using Wox.Infrastructure.Storage;
using Wox.Plugin.SharedCommands;
namespace Wox.Plugin.Url
{
@@ -79,15 +79,8 @@ namespace Wox.Plugin.Url
}
try
{
if (_settings.BrowserPath.Length == 0)
{
Process.Start(raw);
}
else
{
Process.Start(_settings.BrowserPath,raw);
}
raw.NewBrowserWindow(_settings.BrowserPath);
return true;
}
catch(Exception ex)