Bug fix for drag drop plugin installer.

This commit is contained in:
qianlifeng 2014-06-30 22:55:27 +08:00
parent e4898bbbb3
commit a75b7b9be6

View File

@ -534,7 +534,14 @@ namespace Wox {
{
// Note that you can have more than one file.
string[] files = (string[])e.Data.GetData(System.Windows.DataFormats.FileDrop);
PluginInstaller.Install(files[0]);
if (files[0].ToLower().EndsWith(".wox"))
{
PluginInstaller.Install(files[0]);
}
else
{
MessageBox.Show("incorrect wox plugin file.");
}
}
}