Skip to content

Commit

Permalink
1116 - Replace space with dash in filename for image export
Browse files Browse the repository at this point in the history
  • Loading branch information
NickeManarin committed Aug 14, 2022
1 parent 9bbbead commit 4a34b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ScreenToGif/Util/EncodingManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ private static async Task Encode(ExportProject project, ExportPreset preset, int

foreach (var frame in project.FramesFiles)
{
var path = Path.Combine(preset.OutputFolder, $"{preset.ResolvedFilename} {frame.Index.ToString().PadLeft(padLength, '0')}{preset.Extension ?? preset.DefaultExtension}");
var path = Path.Combine(preset.OutputFolder, $"{preset.ResolvedFilename}-{frame.Index.ToString().PadLeft(padLength, '0')}{preset.Extension ?? preset.DefaultExtension}");

if (File.Exists(path))
File.Delete(path);
Expand Down

0 comments on commit 4a34b60

Please sign in to comment.