mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
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:
parent
8b793235c3
commit
12c9e943b2
3 changed files with 2 additions and 1 deletions
|
@ -125,6 +125,7 @@ namespace Greenshot.Destinations {
|
|||
exportInformation.ExportMade = outputMade;
|
||||
exportInformation.Filepath = fullPath;
|
||||
captureDetails.Filename = fullPath;
|
||||
conf.OutputFileAsFullpath = fullPath;
|
||||
}
|
||||
|
||||
ProcessExport(exportInformation, surface);
|
||||
|
|
|
@ -78,6 +78,7 @@ namespace Greenshot.Destinations {
|
|||
exportInformation.ExportMade = true;
|
||||
exportInformation.Filepath = savedTo;
|
||||
captureDetails.Filename = savedTo;
|
||||
conf.OutputFileAsFullpath = savedTo;
|
||||
}
|
||||
ProcessExport(exportInformation, surface);
|
||||
return exportInformation;
|
||||
|
|
|
@ -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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue