mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 05:23:24 -07:00
Changed IDestination, added a manuallyInitiated so the destination can change its behavior depending on the flag. An example use-case would be the word exporter: if the flag is false, which it would be if the word destination is set as THE destination, it would add to the current document if one is available otherwise create a new. This makes it possible to have a kind of session behavior.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1749 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
c092712561
commit
eb616472c4
24 changed files with 68 additions and 47 deletions
|
@ -484,7 +484,7 @@ namespace Greenshot.Helpers {
|
|||
bool canDisposeSurface = true;
|
||||
|
||||
if (captureDetails.HasDestination(Destinations.PickerDestination.DESIGNATION)) {
|
||||
DestinationHelper.ExportCapture(Destinations.PickerDestination.DESIGNATION, surface, captureDetails);
|
||||
DestinationHelper.ExportCapture(false, Destinations.PickerDestination.DESIGNATION, surface, captureDetails);
|
||||
captureDetails.CaptureDestinations.Clear();
|
||||
canDisposeSurface = false;
|
||||
}
|
||||
|
@ -505,7 +505,7 @@ namespace Greenshot.Helpers {
|
|||
}
|
||||
LOG.InfoFormat("Calling destination {0}", destination.Description);
|
||||
|
||||
bool destinationOk = destination.ExportCapture(surface, captureDetails);
|
||||
bool destinationOk = destination.ExportCapture(false, surface, captureDetails);
|
||||
if (Destinations.EditorDestination.DESIGNATION.Equals(destination.Designation) && destinationOk) {
|
||||
canDisposeSurface = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue