mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-06-15 08:54:37 +12:00
Fix crash when trying to replace .mat video when its currently playing
This commit is contained in:
parent
f0e68fdd61
commit
35b995e6f0
|
@ -296,7 +296,7 @@ namespace ModAssistant
|
|||
{
|
||||
//Check to see if the lengths of each file are different. If they are, overwrite what currently exists.
|
||||
FileInfo existingInfo = new FileInfo($"{ThemeDirectory}\\{name}\\_{name}.mp4");
|
||||
if (existingInfo.Length != file.Length)
|
||||
if (existingInfo.Length != file.Length && LoadedTheme != name)
|
||||
{
|
||||
file.ExtractToFile($"{ThemeDirectory}\\{name}\\_{name}.mp4", true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue