Fixed open last capture location, the configuration wasn't updated when saving an image.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2413 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-01-07 17:07:22 +00:00
commit 12c9e943b2
3 changed files with 2 additions and 1 deletions

View file

@ -125,6 +125,7 @@ namespace Greenshot.Destinations {
exportInformation.ExportMade = outputMade;
exportInformation.Filepath = fullPath;
captureDetails.Filename = fullPath;
conf.OutputFileAsFullpath = fullPath;
}
ProcessExport(exportInformation, surface);

View file

@ -78,6 +78,7 @@ namespace Greenshot.Destinations {
exportInformation.ExportMade = true;
exportInformation.Filepath = savedTo;
captureDetails.Filename = savedTo;
conf.OutputFileAsFullpath = savedTo;
}
ProcessExport(exportInformation, surface);
return exportInformation;

View file

@ -418,7 +418,6 @@ namespace GreenshotPlugin.Core {
// TODO: For now we always overwrite, should be changed
ImageOutput.Save(surface, fileNameWithExtension, true, outputSettings, conf.OutputFileCopyPathToClipboard);
returnValue = fileNameWithExtension;
conf.OutputFileAsFullpath = fileNameWithExtension;
IniConfig.Save();
} catch (System.Runtime.InteropServices.ExternalException) {
MessageBox.Show(Language.GetFormattedString("error_nowriteaccess", saveImageFileDialog.FileName).Replace(@"\\", @"\"), Language.GetString("error"));