mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
Bug fix for drag drop plugin installer.
This commit is contained in:
@@ -534,7 +534,14 @@ namespace Wox {
|
|||||||
{
|
{
|
||||||
// Note that you can have more than one file.
|
// Note that you can have more than one file.
|
||||||
string[] files = (string[])e.Data.GetData(System.Windows.DataFormats.FileDrop);
|
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.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user