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

@@ -232,16 +232,13 @@ namespace Wox
{
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;
if (!string.IsNullOrEmpty(website))
var uri = new Uri(website);
if (Uri.CheckSchemeName(uri.Scheme))
{
var uri = new Uri(website);
if (Uri.CheckSchemeName(uri.Scheme))
{
Process.Start(website);
}
Process.Start(website);
}
}
}