mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Removed some unused code, and fixed a Editor-reuse issue. (No focus, and resize issues)
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2106 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
336518f5f9
commit
f7782299cd
7 changed files with 105 additions and 96 deletions
|
@ -96,6 +96,7 @@ namespace Greenshot.Destinations {
|
|||
GC.Collect();
|
||||
GC.WaitForPendingFinalizers();
|
||||
|
||||
bool modified = surface.Modified;
|
||||
if (editor == null) {
|
||||
if (editorConfiguration.ReuseEditor) {
|
||||
foreach(IImageEditor openedEditor in ImageEditorForm.Editors) {
|
||||
|
@ -134,6 +135,8 @@ namespace Greenshot.Destinations {
|
|||
}
|
||||
}
|
||||
ProcessExport(exportInformation, surface);
|
||||
// Workaround for the modified flag when using the editor.
|
||||
surface.Modified = modified;
|
||||
return exportInformation;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue