mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
add option to Url plugin
This commit is contained in:
@@ -78,8 +78,15 @@ namespace Wox.Plugin.Url
|
|||||||
raw = "http://" + raw;
|
raw = "http://" + raw;
|
||||||
}
|
}
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
if (_settings.OpenInNewBrowserWindow)
|
||||||
{
|
{
|
||||||
raw.NewBrowserWindow(_settings.BrowserPath);
|
raw.NewBrowserWindow(_settings.BrowserPath);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
raw.NewTabInBrowser(_settings.BrowserPath);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user