Skip to content

Commit

Permalink
2.3.3.5 - Fixed bug with -capture command line argument and CaptureNo…
Browse files Browse the repository at this point in the history
…w logic.
  • Loading branch information
igloo-gkendall committed Dec 7, 2020
1 parent 8d65239 commit 7f1cdce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions interface/main/FormMain-CommandLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@ private void ParseCommandLineArguments(string[] args)
// -capture
if (Regex.IsMatch(arg, CommandLineRegex.REGEX_COMMAND_LINE_CAPTURE))
{
RefreshApplicationFocusList();

TakeScreenshot(captureNow: true);
}

Expand Down
7 changes: 2 additions & 5 deletions interface/main/FormMain-ScreenCapture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,9 @@ private void TakeScreenshot(bool captureNow)
if (!string.IsNullOrEmpty(_screenCapture.ActiveWindowTitle))
{
// Do not continue if the active window title needs to be checked and the active window title
// does not contain the text defined in "Active Window Title Capture Text" and CaptureNow is false.
// CaptureNow could be set to "true" during a "Capture Now / Archive" or "Capture Now / Edit" option
// so, in that case, we want to capture screens and regions then save screenshots regardless of the title text.
// does not contain the text defined in "Active Window Title Capture Text".
if (checkBoxActiveWindowTitle.Checked && !string.IsNullOrEmpty(textBoxActiveWindowTitle.Text) &&
!_screenCapture.ActiveWindowTitle.ToLower().Contains(textBoxActiveWindowTitle.Text.ToLower()) &&
!_screenCapture.CaptureNow)
!_screenCapture.ActiveWindowTitle.ToLower().Contains(textBoxActiveWindowTitle.Text.ToLower()))
{
return;
}
Expand Down
2 changes: 1 addition & 1 deletion interface/main/FormMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7f1cdce

Please sign in to comment.