mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
Bug fix for drag drop plugin installer.
This commit is contained in:
@@ -534,8 +534,15 @@ 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);
|
||||||
|
if (files[0].ToLower().EndsWith(".wox"))
|
||||||
|
{
|
||||||
PluginInstaller.Install(files[0]);
|
PluginInstaller.Install(files[0]);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MessageBox.Show("incorrect wox plugin file.");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void TbQuery_OnPreviewDragOver(object sender, DragEventArgs e)
|
private void TbQuery_OnPreviewDragOver(object sender, DragEventArgs e)
|
||||||
|
|||||||
Reference in New Issue
Block a user