# BUG - ScreenCapture always deletes temp files (with fix and pull request)

**URL:** <https://discourse.slicer.org/t/bug-screencapture-always-deletes-temp-files-with-fix-and-pull-request/11535>\
**Category:** Development\
**Created:** [May 14, 2020, 12:40pm UTC](https://discourse.slicer.org/t/bug-screencapture-always-deletes-temp-files-with-fix-and-pull-request/11535 "2020-05-14T12:40:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [May 14, 2020, 12:40pm UTC](https://discourse.slicer.org/t/bug-screencapture-always-deletes-temp-files-with-fix-and-pull-request/11535/1 "2020-05-14T12:40:48Z")

</div>

Hey all,

I found an issue with ScreenCapture this morning where it would delete the temp files even if “image series” is selected. This would result in Slicer making the image series and then deleting it. The file deletion should only occur when the images are used for making a video or Lightbox. I made a fix and submitted a pull request, please let me know if the request is not formatted correctly (been a while since I did this) and I can resubmit.

Thanks!

-Hollister
