Add easy ability to brows printed files

This commit is contained in:
Lars Brubaker 2022-01-04 10:26:48 -08:00
parent 42cff97679
commit 45d0458db5
4 changed files with 68 additions and 1 deletions

View file

@ -294,6 +294,20 @@ namespace MatterHackers.MatterControl.Library
fileItem.Path = destFile;
this.ReloadContent();
}
}
else if (item is LocalZipContainerLink zipFile)
{
string sourceFile = zipFile.Path;
if (File.Exists(sourceFile))
{
string extension = Path.GetExtension(sourceFile);
string destFile = Path.Combine(Path.GetDirectoryName(sourceFile), revisedName);
destFile = Path.ChangeExtension(destFile, extension);
File.Move(sourceFile, destFile);
this.ReloadContent();
}
}