Fix output name null edge case

This commit is contained in:
Matt Nadareski
2024-12-20 21:35:49 -05:00
parent b604aefd5e
commit b025898d7b
2 changed files with 2 additions and 1 deletions

View File

@@ -105,6 +105,7 @@
- Remove reference to removed file
- Add README files for two libraries
- Simplify output name assembly logic
- Fix output name null edge case
### 3.2.4 (2024-11-24)

View File

@@ -1421,7 +1421,7 @@ namespace MPF.Frontend.ViewModels
{
// If the previous path is exactly the default path and last filename
if (lastDirectory.EndsWith(Path.Combine(defaultOutputPath, lastFilename)))
lastDirectory = Path.GetDirectoryName(lastDirectory);
lastDirectory = Path.GetDirectoryName(lastDirectory) ?? string.Empty;
// Create the output path
if (lastDirectory == defaultOutputPath)