mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-13 06:34:23 -04:00
Small cleanup
This commit is contained in:
parent
6fee160bc7
commit
61dce7c1a8
1 changed files with 3 additions and 3 deletions
|
@ -44,9 +44,9 @@ namespace DiscordChatExporter.Gui.ViewModels
|
||||||
Set(ref _format, value);
|
Set(ref _format, value);
|
||||||
|
|
||||||
// Replace extension in path
|
// Replace extension in path
|
||||||
var newExt = value.GetFileExtension();
|
var ext = value.GetFileExtension();
|
||||||
if (FilePath != null && !FilePath.EndsWith(newExt))
|
if (FilePath != null)
|
||||||
FilePath = FilePath.SubstringUntilLast(".") + "." + newExt;
|
FilePath = Path.ChangeExtension(FilePath, ext);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue