mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
More changes for the PleaseWaitForm, rewrote the jira plug-in to use it. Added some more comments to the code. Fixed the context menu, added a separator for the plug-in entries. Fixed an issue with the PickerDestination, when an export is canceled the menu was shown visible in the task-bar.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1986 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
caa5b0e0fe
commit
431b31cc5e
10 changed files with 130 additions and 77 deletions
|
@ -90,7 +90,7 @@ namespace GreenshotPlugin.Core {
|
|||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Helper method to add a MenuItem to the Greenshot context menu
|
||||
/// Helper method to add a plugin MenuItem to the Greenshot context menu
|
||||
/// </summary>
|
||||
/// <param name="imageEditor"></param>
|
||||
/// <param name="item"></param>
|
||||
|
@ -102,8 +102,17 @@ namespace GreenshotPlugin.Core {
|
|||
// Try to find a separator, so we insert ourselves after it
|
||||
for(int i=0; i < contextMenu.Items.Count; i++) {
|
||||
if (contextMenu.Items[i].GetType() == typeof(ToolStripSeparator)) {
|
||||
contextMenu.Items.Insert(i+1, item);
|
||||
addedItem = true;
|
||||
// Check if we need to add a new separator, which is done if the first found has a Tag with the value "PluginsAreAddedBefore"
|
||||
if ("PluginsAreAddedBefore".Equals(contextMenu.Items[i].Tag)) {
|
||||
ToolStripSeparator separator = new ToolStripSeparator();
|
||||
separator.Size = new Size(305, 6);
|
||||
contextMenu.Items.Insert(i, separator);
|
||||
contextMenu.Items.Insert(i+1, item);
|
||||
addedItem = true;
|
||||
} else {
|
||||
contextMenu.Items.Insert(i+1, item);
|
||||
addedItem = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue