mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 05:23:24 -07:00
ContextMenu changes for the IE capture and plug-ins
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1997 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
e5e6b3bd43
commit
0ee25e8cac
4 changed files with 24 additions and 13 deletions
|
@ -649,9 +649,12 @@ namespace Greenshot {
|
|||
/// Build a selectable list of IE tabs when we enter the menu item
|
||||
/// </summary>
|
||||
void CaptureIEMenuDropDownOpening(object sender, EventArgs e) {
|
||||
if (!conf.IECapture) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
List<KeyValuePair<WindowDetails, string>> tabs = IECaptureHelper.GetTabList();
|
||||
this.contextmenu_captureie.DropDownItems.Clear();
|
||||
this.contextmenu_captureiefromlist.DropDownItems.Clear();
|
||||
if (tabs.Count > 0) {
|
||||
this.contextmenu_captureie.Enabled = true;
|
||||
this.contextmenu_captureiefromlist.Enabled = true;
|
||||
|
@ -667,7 +670,7 @@ namespace Greenshot {
|
|||
}
|
||||
captureIETabItem.Tag = new KeyValuePair<WindowDetails, int>(tabData.Key, index++);
|
||||
captureIETabItem.Click += new System.EventHandler(Contextmenu_captureiefromlist_Click);
|
||||
this.contextmenu_captureie.DropDownItems.Add(captureIETabItem);
|
||||
this.contextmenu_captureiefromlist.DropDownItems.Add(captureIETabItem);
|
||||
if (counter.ContainsKey(tabData.Key)) {
|
||||
counter[tabData.Key] = index;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue