From b7a7364b405a21e31f250fa9716b55f9acb67ab2 Mon Sep 17 00:00:00 2001 From: Markus Hofknecht Date: Sun, 28 Nov 2021 14:05:01 +0100 Subject: [PATCH] [BUG] DragDrop URL to main menu not working (#254), version 1.1.1.2 --- Helpers/DragDropHelper.cs | 15 +++++++++++---- Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Helpers/DragDropHelper.cs b/Helpers/DragDropHelper.cs index 923bf67..1e9645d 100644 --- a/Helpers/DragDropHelper.cs +++ b/Helpers/DragDropHelper.cs @@ -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"); diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index bb3d9f0..f9af2a8 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -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")]