mirror of https://github.com/ShareX/ShareX.git
Fixed active window screen recording file naming
This commit is contained in:
parent
34b23fcd37
commit
47bc35bf99
|
@ -137,6 +137,7 @@ namespace ShareX
|
|||
else
|
||||
{
|
||||
RegionCaptureTasks.GetRectangleRegion(out captureRectangle, out WindowInfo windowInfo, taskSettings.CaptureSettings.SurfaceOptions);
|
||||
|
||||
metadata.UpdateInfo(windowInfo);
|
||||
}
|
||||
break;
|
||||
|
@ -149,6 +150,10 @@ namespace ShareX
|
|||
{
|
||||
captureRectangle = CaptureHelpers.GetActiveWindowRectangle();
|
||||
}
|
||||
|
||||
IntPtr handle = NativeMethods.GetForegroundWindow();
|
||||
WindowInfo activeWindowInfo = new WindowInfo(handle);
|
||||
metadata.UpdateInfo(activeWindowInfo);
|
||||
break;
|
||||
case ScreenRecordStartMethod.CustomRegion:
|
||||
captureRectangle = taskSettings.CaptureSettings.CaptureCustomRegion;
|
||||
|
|
Loading…
Reference in New Issue