mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Some deduplicator bugfixes.
This commit is contained in:
parent
cc17bb9928
commit
dbcc050509
4 changed files with 7 additions and 3 deletions
|
|
@ -99,6 +99,7 @@ namespace Penumbra.Models
|
||||||
inOption = true;
|
inOption = true;
|
||||||
foreach (var value in values)
|
foreach (var value in values)
|
||||||
option.AddFile(relName1, value);
|
option.AddFile(relName1, value);
|
||||||
|
option.OptionFiles.Remove(relName2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ namespace Penumbra.Mods
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ModFiles.Clear();
|
||||||
// we don't care about any _files_ in the root dir, but any folders should be a game folder/file combo
|
// we don't care about any _files_ in the root dir, but any folders should be a game folder/file combo
|
||||||
foreach( var dir in ModBasePath.EnumerateDirectories() )
|
foreach( var dir in ModBasePath.EnumerateDirectories() )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -228,6 +228,8 @@ namespace Penumbra.UI
|
||||||
{
|
{
|
||||||
new Deduplicator(Mod.Mod.ModBasePath, Meta).Run();
|
new Deduplicator(Mod.Mod.ModBasePath, Meta).Run();
|
||||||
_selector.SaveCurrentMod();
|
_selector.SaveCurrentMod();
|
||||||
|
Mod.Mod.RefreshModFiles();
|
||||||
|
_base._plugin.ModManager.CalculateEffectiveFileList();
|
||||||
_base._menu._effectiveTab.RebuildFileList(_base._plugin.Configuration.ShowAdvanced);
|
_base._menu._effectiveTab.RebuildFileList(_base._plugin.Configuration.ShowAdvanced);
|
||||||
}
|
}
|
||||||
if( ImGui.IsItemHovered() )
|
if( ImGui.IsItemHovered() )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue