mirror of
https://github.com/greenshot/greenshot
synced 2025-07-14 17:13:44 -07:00
Fixed an issue where the destination picker is displayed while we are already in the destination. This is done by storing the value of the clicked item in the ContextMenuStrip.Tag property, if this is null the user didn't click on the menu but somewhere else and we cancel the close... if the value is set, the user clicked on the menu and the close is allowed.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2504 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
0e86fa409c
commit
9850096c3b
3 changed files with 107 additions and 68 deletions
|
@ -299,7 +299,7 @@ namespace Greenshot {
|
|||
continue;
|
||||
}
|
||||
|
||||
ToolStripMenuItem item = destination.GetMenuItem(true, new EventHandler(DestinationToolStripMenuItemClick));
|
||||
ToolStripMenuItem item = destination.GetMenuItem(true, null, new EventHandler(DestinationToolStripMenuItemClick));
|
||||
if (item != null) {
|
||||
item.ShortcutKeys = destination.EditorShortcutKeys;
|
||||
fileStripMenuItem.DropDownItems.Add(item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue