Perform case insensitive file extension comparison
- Issue MatterHackers/MCCentral#5539 Exporting as STL appends ".stl" and creates new file
This commit is contained in:
parent
edf8d455c5
commit
1033649e12
1 changed files with 1 additions and 1 deletions
|
|
@ -260,7 +260,7 @@ namespace MatterHackers.MatterControl
|
|||
async (reporter, cancellationToken) =>
|
||||
{
|
||||
string extension = Path.GetExtension(savePath);
|
||||
if (extension != targetExtension)
|
||||
if (!extension.Equals(targetExtension, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
savePath += targetExtension;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue