Small cleanup

pull/70/head
Alexey Golub 7 years ago
parent 6fee160bc7
commit 61dce7c1a8

@ -44,9 +44,9 @@ namespace DiscordChatExporter.Gui.ViewModels
Set(ref _format, value);
// Replace extension in path
var newExt = value.GetFileExtension();
if (FilePath != null && !FilePath.EndsWith(newExt))
FilePath = FilePath.SubstringUntilLast(".") + "." + newExt;
var ext = value.GetFileExtension();
if (FilePath != null)
FilePath = Path.ChangeExtension(FilePath, ext);
}
}

Loading…
Cancel
Save