Usage of EmptyWorkingSet now via the configuration, so we don't use it for all people.

This commit is contained in:
RKrom 2014-06-16 23:32:30 +02:00
commit 9aefc90460
3 changed files with 22 additions and 14 deletions

View file

@ -77,6 +77,10 @@ namespace Greenshot.Helpers {
_windows = null;
_selectedCaptureWindow = null;
_capture = null;
// Empty working set after capturing
if (conf.MinimizeWorkingSetSize) {
PsAPI.EmptyWorkingSet();
}
}
public static void CaptureClipboard() {
using (CaptureHelper captureHelper = new CaptureHelper(CaptureMode.Clipboard)) {