add option to Url plugin

This commit is contained in:
Jeremy Wu
2019-11-11 06:04:16 +11:00
parent 3929043eec
commit dcbd4f3356
2 changed files with 10 additions and 1 deletions

View File

@@ -79,7 +79,14 @@ namespace Wox.Plugin.Url
} }
try try
{ {
raw.NewBrowserWindow(_settings.BrowserPath); if (_settings.OpenInNewBrowserWindow)
{
raw.NewBrowserWindow(_settings.BrowserPath);
}
else
{
raw.NewTabInBrowser(_settings.BrowserPath);
}
return true; return true;
} }

View File

@@ -9,5 +9,7 @@ namespace Wox.Plugin.Url
public class Settings public class Settings
{ {
public string BrowserPath { get; set; } public string BrowserPath { get; set; }
public bool OpenInNewBrowserWindow { get; set; } = true;
} }
} }