mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-28 08:46:44 +00:00
Small cleanup
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user