mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -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
|
@ -131,14 +131,7 @@ namespace Greenshot.Helpers {
|
|||
public static ExportInformation ExportCapture(bool manuallyInitiated, string designation, ISurface surface, ICaptureDetails captureDetails) {
|
||||
IDestination destination = GetDestination(designation);
|
||||
if (destination != null && destination.isActive) {
|
||||
ExportInformation exportInformation = destination.ExportCapture(manuallyInitiated, surface, captureDetails);
|
||||
if (exportInformation != null && exportInformation.ExportMade) {
|
||||
// Export worked, set the modified flag to false if the export wasn't to the editor or picker
|
||||
if (!EditorDestination.DESIGNATION.Equals(designation) && !PickerDestination.DESIGNATION.Equals(designation)) {
|
||||
surface.Modified = false;
|
||||
}
|
||||
}
|
||||
return exportInformation;
|
||||
return destination.ExportCapture(manuallyInitiated, surface, captureDetails);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue