diff --git a/Wox/SettingWindow.xaml b/Wox/SettingWindow.xaml
index 146a9373f9..9a29d3f411 100644
--- a/Wox/SettingWindow.xaml
+++ b/Wox/SettingWindow.xaml
@@ -117,12 +117,13 @@
-
+
Disable
ActionKeyword:
-
+
+
diff --git a/Wox/SettingWindow.xaml.cs b/Wox/SettingWindow.xaml.cs
index 3a51899797..4044f5ae20 100644
--- a/Wox/SettingWindow.xaml.cs
+++ b/Wox/SettingWindow.xaml.cs
@@ -30,7 +30,7 @@ namespace Wox
string woxLinkPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Startup), "wox.lnk");
public MainWindow MainWindow;
bool settingsLoaded = false;
- private Dictionary featureControls = new Dictionary();
+ private Dictionary featureControls = new Dictionary();
public SettingWindow()
{
@@ -321,7 +321,7 @@ namespace Wox
private void CbQueryBoxFontFaces_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (!settingsLoaded) return;
- FamilyTypeface typeface = (FamilyTypeface) cbQueryBoxFontFaces.SelectedItem;
+ FamilyTypeface typeface = (FamilyTypeface)cbQueryBoxFontFaces.SelectedItem;
if (typeface == null)
{
if (cbQueryBoxFontFaces.Items.Count > 0)
@@ -387,7 +387,7 @@ namespace Wox
private void CbOpacityMode_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
{
- UserSettingStorage.Instance.OpacityMode = (OpacityMode) CbOpacityMode.SelectedItem;
+ UserSettingStorage.Instance.OpacityMode = (OpacityMode)CbOpacityMode.SelectedItem;
UserSettingStorage.Instance.Save();
slOpacity.IsEnabled = UserSettingStorage.Instance.OpacityMode == OpacityMode.LayeredWindow;
@@ -411,6 +411,7 @@ namespace Wox
pluginAuthor.Visibility = Visibility.Visible;
pluginActionKeyword.Visibility = Visibility.Visible;
pluginActionKeywordTitle.Visibility = Visibility.Visible;
+ tbOpenPluginDirecoty.Visibility = Visibility.Visible;
pluginTitle.Text = pair.Metadata.Name;
pluginTitle.Cursor = Cursors.Hand;
pluginActionKeyword.Text = pair.Metadata.ActionKeyword;
@@ -439,15 +440,16 @@ namespace Wox
pluginSubTitle.Text = sys.Description;
pluginAuthor.Visibility = Visibility.Collapsed;
pluginActionKeyword.Visibility = Visibility.Collapsed;
+ tbOpenPluginDirecoty.Visibility = Visibility.Collapsed;
pluginActionKeywordTitle.Visibility = Visibility.Collapsed;
pluginTitle.Cursor = Cursors.Arrow;
SyntaxSugars.CallOrRescueDefault(
() =>
- pluginIcon.Source = (ImageSource) new ImagePathConverter().Convert( new object[]
+ pluginIcon.Source = (ImageSource)new ImagePathConverter().Convert(new object[]
{
sys.IcoPath,
sys.PluginDirectory
- }, null, null,null));
+ }, null, null, null));
}
}
@@ -532,7 +534,7 @@ namespace Wox
private void PluginTitle_OnMouseUp(object sender, MouseButtonEventArgs e)
{
- if (e.ChangedButton == MouseButton.Left)
+ if (e.ChangedButton == MouseButton.Left)
{
var pair = lbPlugins.SelectedItem as PluginPair;
if (pair != null)
@@ -550,5 +552,26 @@ namespace Wox
}
}
}
+
+ private void tbOpenPluginDirecoty_MouseUp(object sender, MouseButtonEventArgs e)
+ {
+ if (e.ChangedButton == MouseButton.Left)
+ {
+ var pair = lbPlugins.SelectedItem as PluginPair;
+ if (pair != null)
+ {
+ //third-party plugin
+ if (!string.IsNullOrEmpty(pair.Metadata.Website))
+ {
+ try
+ {
+ Process.Start(pair.Metadata.PluginDirecotry);
+ }
+ catch
+ { }
+ }
+ }
+ }
+ }
}
}