mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Fixed issue when the selected IE window to capture is not visible/iconized, a restore fixes this.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2192 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
d3eaf80aa2
commit
afbe046d3e
1 changed files with 6 additions and 2 deletions
|
@ -873,13 +873,17 @@ namespace Greenshot {
|
|||
ToolStripMenuItem clickedItem = (ToolStripMenuItem)sender;
|
||||
KeyValuePair<WindowDetails, int> tabData = (KeyValuePair<WindowDetails, int>)clickedItem.Tag;
|
||||
BeginInvoke((MethodInvoker)delegate {
|
||||
WindowDetails ieWindowToCapture = tabData.Key;
|
||||
if (ieWindowToCapture != null && (!ieWindowToCapture.Visible || ieWindowToCapture.Iconic)) {
|
||||
ieWindowToCapture.Restore();
|
||||
}
|
||||
try {
|
||||
IECaptureHelper.ActivateIETab(tabData.Key, tabData.Value);
|
||||
IECaptureHelper.ActivateIETab(ieWindowToCapture, tabData.Value);
|
||||
} catch (Exception exception) {
|
||||
LOG.Error(exception);
|
||||
}
|
||||
try {
|
||||
CaptureHelper.CaptureIE(false, tabData.Key);
|
||||
CaptureHelper.CaptureIE(false, ieWindowToCapture);
|
||||
} catch (Exception exception) {
|
||||
LOG.Error(exception);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue