Fix issue with renaming mods with open advanced window.

This commit is contained in:
Ottermandias 2024-02-17 13:35:42 +01:00
parent 06cf6ce752
commit 2e0e125913

View file

@ -629,7 +629,10 @@ public partial class ModEditWindow : Window, IDisposable
private void OnModPathChange(ModPathChangeType type, Mod mod, DirectoryInfo? _1, DirectoryInfo? _2)
{
if (type is ModPathChangeType.Reloaded or ModPathChangeType.Moved)
ChangeMod(mod);
if (type is not (ModPathChangeType.Reloaded or ModPathChangeType.Moved) || mod != _mod)
return;
_mod = null;
ChangeMod(mod);
}
}