Simple fixes (#871)

This commit is contained in:
Damir Ainullin
2016-07-30 18:16:28 +03:00
committed by bao-qian
parent 2bff13d9e1
commit d2287328ad
2 changed files with 6 additions and 9 deletions

View File

@@ -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;

View File

@@ -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);
}
} }
} }
} }