mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
Added EmptyWorkingSet in the editor, this is only called if the configuration allows this.
This commit is contained in:
parent
b6a37aa48e
commit
5a7a1dfab9
1 changed files with 6 additions and 1 deletions
|
@ -32,6 +32,7 @@ using Greenshot.IniFile;
|
|||
using Greenshot.Plugin;
|
||||
using GreenshotPlugin.Controls;
|
||||
using GreenshotPlugin.Core;
|
||||
using GreenshotPlugin.UnmanagedHelpers;
|
||||
using log4net;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
@ -49,7 +50,8 @@ namespace Greenshot {
|
|||
public partial class ImageEditorForm : BaseForm, IImageEditor {
|
||||
private static readonly ILog LOG = LogManager.GetLogger(typeof(ImageEditorForm));
|
||||
private static EditorConfiguration editorConfiguration = IniConfig.GetIniSection<EditorConfiguration>();
|
||||
private static List<string> ignoreDestinations = new List<string>() {PickerDestination.DESIGNATION, EditorDestination.DESIGNATION};
|
||||
private static CoreConfiguration coreConfiguration = IniConfig.GetIniSection<CoreConfiguration>();
|
||||
private static List<string> ignoreDestinations = new List<string>() { PickerDestination.DESIGNATION, EditorDestination.DESIGNATION };
|
||||
private static List<IImageEditor> editorList = new List<IImageEditor>();
|
||||
|
||||
private Surface surface;
|
||||
|
@ -714,6 +716,9 @@ namespace Greenshot {
|
|||
surface.Dispose();
|
||||
|
||||
GC.Collect();
|
||||
if (coreConfiguration.MinimizeWorkingSetSize) {
|
||||
PsAPI.EmptyWorkingSet();
|
||||
}
|
||||
}
|
||||
|
||||
void ImageEditorFormKeyDown(object sender, KeyEventArgs e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue