mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 10:47:02 -07:00
Fixed surface modification flag, was set to false if the picker or the editor was used. (which is not ok)
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1832 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
6905a353c1
commit
5a5da6a423
1 changed files with 5 additions and 2 deletions
|
@ -23,6 +23,7 @@ using System.Collections.Generic;
|
|||
|
||||
using Greenshot.Plugin;
|
||||
using GreenshotPlugin.Core;
|
||||
using Greenshot.Destinations;
|
||||
|
||||
namespace Greenshot.Helpers {
|
||||
/// <summary>
|
||||
|
@ -117,8 +118,10 @@ namespace Greenshot.Helpers {
|
|||
IDestination destination = RegisteredDestinations[designation];
|
||||
if (destination.isActive) {
|
||||
if (destination.ExportCapture(manuallyInitiated, surface, captureDetails)) {
|
||||
// Export worked, set the modified flag
|
||||
surface.Modified = false;
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue