mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Added tmp-file cleanup, including the cached entry, currently only for Excel.
This commit is contained in:
parent
1c0dc61bd8
commit
fa79ebb727
2 changed files with 21 additions and 2 deletions
|
@ -124,8 +124,8 @@ namespace GreenshotOfficePlugin {
|
|||
exportInformation.ExportMade = true;
|
||||
ProcessExport(exportInformation, surface);
|
||||
// Cleanup imageFile if we created it here, so less tmp-files are generated and left
|
||||
if (createdFile && File.Exists(imageFile)) {
|
||||
File.Delete(imageFile);
|
||||
if (createdFile) {
|
||||
ImageOutput.DeleteNamedTmpFile(imageFile);
|
||||
}
|
||||
return exportInformation;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue