diff --git a/Wox/MainWindow.xaml.cs b/Wox/MainWindow.xaml.cs index d25a444b44..bddb4f426e 100644 --- a/Wox/MainWindow.xaml.cs +++ b/Wox/MainWindow.xaml.cs @@ -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."); + } } }