From a75b7b9be619c3ca41fb3e9d05fc14929d3c1a40 Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Mon, 30 Jun 2014 22:55:27 +0800 Subject: [PATCH] Bug fix for drag drop plugin installer. --- Wox/MainWindow.xaml.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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."); + } } }