mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-13 02:39:22 +08:00
Bug fix for drag drop plugin installer.
This commit is contained in:
parent
e4898bbbb3
commit
a75b7b9be6
@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user