Refactoring for new patterns and added the other projects to the solution, so refactoring is always made over all files.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@895 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2010-09-22 09:41:19 +00:00
commit 7066a5e6ee
7 changed files with 247 additions and 60 deletions

View file

@ -335,7 +335,8 @@ namespace Greenshot.Forms {
bool fileWritten = false;
if (captureDestinations.Contains(CaptureDestination.File)) {
string filename = FilenameHelper.GetFilenameFromPattern(conf.OutputFileFilenamePattern, conf.OutputFileFormat, captureDetails);
fullPath = Path.Combine(conf.OutputFilePath,filename);
string filepath = FilenameHelper.FillVariables(conf.OutputFilePath);
fullPath = Path.Combine(filepath,filename);
// Catching any exception to prevent that the user can't write in the directory.
// This is done for e.g. bugs #2974608, #2963943, #2816163, #2795317, #2789218, #3004642