mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
Simple fixes (#871)
This commit is contained in:
@@ -91,7 +91,7 @@ namespace Wox.Plugin
|
|||||||
public List<Result> ContextMenu { get; set; }
|
public List<Result> ContextMenu { get; set; }
|
||||||
|
|
||||||
[Obsolete("Use Object initializers instead")]
|
[Obsolete("Use Object initializers instead")]
|
||||||
public Result(string Titles, string IcoPath, string SubTitle = null)
|
public Result(string Title, string IcoPath, string SubTitle = null)
|
||||||
{
|
{
|
||||||
this.Title = Title;
|
this.Title = Title;
|
||||||
this.IcoPath = IcoPath;
|
this.IcoPath = IcoPath;
|
||||||
|
|||||||
@@ -232,16 +232,13 @@ namespace Wox
|
|||||||
{
|
{
|
||||||
if (e.ChangedButton == MouseButton.Left)
|
if (e.ChangedButton == MouseButton.Left)
|
||||||
{
|
{
|
||||||
if (e.ChangedButton == MouseButton.Left)
|
var website = _viewModel.SelectedPlugin.PluginPair.Metadata.Website;
|
||||||
|
if (!string.IsNullOrEmpty(website))
|
||||||
{
|
{
|
||||||
var website = _viewModel.SelectedPlugin.PluginPair.Metadata.Website;
|
var uri = new Uri(website);
|
||||||
if (!string.IsNullOrEmpty(website))
|
if (Uri.CheckSchemeName(uri.Scheme))
|
||||||
{
|
{
|
||||||
var uri = new Uri(website);
|
Process.Start(website);
|
||||||
if (Uri.CheckSchemeName(uri.Scheme))
|
|
||||||
{
|
|
||||||
Process.Start(website);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user