Skip to content

Commit 7f1cdce

Browse files
2.3.3.5 - Fixed bug with -capture command line argument and CaptureNow logic.
1 parent 8d65239 commit 7f1cdce

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

interface/main/FormMain-CommandLine.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ private void ParseCommandLineArguments(string[] args)
157157
// -capture
158158
if (Regex.IsMatch(arg, CommandLineRegex.REGEX_COMMAND_LINE_CAPTURE))
159159
{
160-
RefreshApplicationFocusList();
161-
162160
TakeScreenshot(captureNow: true);
163161
}
164162

interface/main/FormMain-ScreenCapture.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,9 @@ private void TakeScreenshot(bool captureNow)
189189
if (!string.IsNullOrEmpty(_screenCapture.ActiveWindowTitle))
190190
{
191191
// Do not continue if the active window title needs to be checked and the active window title
192-
// does not contain the text defined in "Active Window Title Capture Text" and CaptureNow is false.
193-
// CaptureNow could be set to "true" during a "Capture Now / Archive" or "Capture Now / Edit" option
194-
// so, in that case, we want to capture screens and regions then save screenshots regardless of the title text.
192+
// does not contain the text defined in "Active Window Title Capture Text".
195193
if (checkBoxActiveWindowTitle.Checked && !string.IsNullOrEmpty(textBoxActiveWindowTitle.Text) &&
196-
!_screenCapture.ActiveWindowTitle.ToLower().Contains(textBoxActiveWindowTitle.Text.ToLower()) &&
197-
!_screenCapture.CaptureNow)
194+
!_screenCapture.ActiveWindowTitle.ToLower().Contains(textBoxActiveWindowTitle.Text.ToLower()))
198195
{
199196
return;
200197
}

interface/main/FormMain.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)