From a43c6e0d9cf58cbf78818a955e82cb0be067a01f Mon Sep 17 00:00:00 2001 From: Markus Hofknecht Date: Tue, 25 Jan 2022 17:40:43 +0100 Subject: [PATCH] [BUG] Right click on items to choose "Send to" doesn't work (#225), version 1.2.2.5 --- Properties/AssemblyInfo.cs | 4 ++-- README.md | 4 ++-- UserInterface/AppContextMenu.cs | 4 ++-- UserInterface/ShellContextMenu/ShellContextMenu.cs | 8 +++++--- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index fa18731..789dbdc 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.2.2.4")] -[assembly: AssemblyFileVersion("1.2.2.4")] +[assembly: AssemblyVersion("1.2.2.5")] +[assembly: AssemblyFileVersion("1.2.2.5")] diff --git a/README.md b/README.md index e13db21..0f799b9 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ Thanks for ideas, reporting issues and contributing! #171 [kehoen](https://github.com/kehoen), #186 [Dtrieb](https://github.com/Dtrieb), #188 #189 #191 #195 [iJahangard](https://github.com/iJahangard), -#195 #197 #238 [the-phuctran](https://github.com/the-phuctran), +#195 #197 #225 #238 [the-phuctran](https://github.com/the-phuctran), #205 [kristofzerbe](https://github.com/kristofzerbe), #209 [jonaskohl](https://github.com/jonaskohl), #211 [blacksparrow15](https://github.com/blacksparrow15), @@ -169,7 +169,7 @@ Thanks for ideas, reporting issues and contributing! #285 #286 [dao-net](https://github.com/dao-net), #288 William P., #294 #295 #296 Stefan Mahrer, -#297 [chip33](https://github.com/chip33), +#225 #297 [chip33](https://github.com/chip33), Donations diff --git a/UserInterface/AppContextMenu.cs b/UserInterface/AppContextMenu.cs index 32ca8fe..7d10c35 100644 --- a/UserInterface/AppContextMenu.cs +++ b/UserInterface/AppContextMenu.cs @@ -97,12 +97,12 @@ namespace SystemTrayMenu.Helper ab.AppMoreInfo += "Thanks for ideas, reporting issues and contributing!" + Environment.NewLine; ab.AppMoreInfo += "#123 Mordecai00, #125 Holgermh, #135 #153 #154 #164 jakkaas, #145 Pascal Aloy, #153 #158 #160 blackcrack,"; - ab.AppMoreInfo += "#162 HansieNL, #163 igorruckert, #171 kehoen, #186 Dtrieb, #188 #189 #191 #195 iJahangard, #195 #197 #238 the-phuctran, "; + ab.AppMoreInfo += "#162 HansieNL, #163 igorruckert, #171 kehoen, #186 Dtrieb, #188 #189 #191 #195 iJahangard, #195 #197 #225 #238 the-phuctran, "; ab.AppMoreInfo += "#205 kristofzerbe, #209 jonaskohl, #211 blacksparrow15, #220 Yavuz E., #229 #230 #239 Peter O., #231 Ryonez, "; ab.AppMoreInfo += "#235 #242 243 #247, #271 Tom, #237 Torsten S., #240 video Patrick, #244 Gunter D., #246 MACE4GITHUB, #259 vanjac, "; ab.AppMoreInfo += "#262 terencemcdonnell, #269 petersnows25, #272 Peter M., #273 #274 ParasiteDelta, #275 #276 #278 donaldaken, "; ab.AppMoreInfo += "#277 Jan S., #282 akuznets, #283 #284 #289 RuSieg, #285 #286 dao-net, #288 William P., #294 #295 #296 Stefan Mahrer, "; - ab.AppMoreInfo += "#297 chip33, " + Environment.NewLine; + ab.AppMoreInfo += "#225 #297 chip33, " + Environment.NewLine; ab.AppDetailsButton = true; ab.ShowDialog(); diff --git a/UserInterface/ShellContextMenu/ShellContextMenu.cs b/UserInterface/ShellContextMenu/ShellContextMenu.cs index c4659e6..6abb43d 100644 --- a/UserInterface/ShellContextMenu/ShellContextMenu.cs +++ b/UserInterface/ShellContextMenu/ShellContextMenu.cs @@ -774,13 +774,15 @@ namespace SystemTrayMenu.Utilities Handle, IntPtr.Zero); - DllImports.NativeMethods.User32DestroyMenu(pMenu); - pMenu = IntPtr.Zero; - + // First invoke menu item, then destroy menu + // (otherwise: Right click on items to choose "Send to" doesn't work #225) if (nSelected != 0) { InvokeCommand(oContextMenu, nSelected, strParentFolder, pointScreen); } + + DllImports.NativeMethods.User32DestroyMenu(pMenu); + pMenu = IntPtr.Zero; } catch {