[BUG] DragDrop URL to main menu not working (#254), version 1.1.1.2

This commit is contained in:
Markus Hofknecht 2021-11-28 14:05:01 +01:00
parent 976ad23fc3
commit b7a7364b40
2 changed files with 13 additions and 6 deletions

View file

@ -35,14 +35,21 @@ namespace SystemTrayMenu.Helper
{
Menu menu = (Menu)sender;
string path;
if (menu == null)
if (menu != null)
{
path = Config.Path;
RowData rowData = (RowData)menu.Tag;
if (rowData != null)
{
path = rowData.TargetFilePath;
}
else
{
path = Config.Path;
}
}
else
{
RowData rowData = (RowData)menu.Tag;
path = rowData.TargetFilePath;
path = Config.Path;
}
object data = e.Data.GetData("UniformResourceLocator");

View file

@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.1.1")]
[assembly: AssemblyFileVersion("1.1.1.1")]
[assembly: AssemblyVersion("1.1.1.2")]
[assembly: AssemblyFileVersion("1.1.1.2")]