mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 20:24:17 +01:00
Fix bug preventing deduplication.
This commit is contained in:
parent
1f2f66b114
commit
bbbf65eb4c
3 changed files with 5 additions and 2 deletions
|
|
@ -84,7 +84,10 @@ public class DuplicateManager(ModManager modManager, SaveService saveService, Co
|
||||||
if (useModManager)
|
if (useModManager)
|
||||||
modManager.OptionEditor.SetFiles(subMod, dict, SaveType.ImmediateSync);
|
modManager.OptionEditor.SetFiles(subMod, dict, SaveType.ImmediateSync);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
subMod.Files = dict;
|
||||||
saveService.ImmediateSaveSync(new ModSaveGroup(mod.ModPath, subMod, config.ReplaceNonAsciiOnImport));
|
saveService.ImmediateSaveSync(new ModSaveGroup(mod.ModPath, subMod, config.ReplaceNonAsciiOnImport));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ public readonly struct ModSaveGroup : ISavable
|
||||||
_basePath = basePath;
|
_basePath = basePath;
|
||||||
_defaultMod = container as DefaultSubMod;
|
_defaultMod = container as DefaultSubMod;
|
||||||
_onlyAscii = onlyAscii;
|
_onlyAscii = onlyAscii;
|
||||||
if (_defaultMod == null)
|
if (_defaultMod != null)
|
||||||
{
|
{
|
||||||
_groupIdx = -1;
|
_groupIdx = -1;
|
||||||
_group = null;
|
_group = null;
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ public class CollectionSelectHeader
|
||||||
var collection = _resolver.PlayerCollection();
|
var collection = _resolver.PlayerCollection();
|
||||||
return CheckCollection(collection) switch
|
return CheckCollection(collection) switch
|
||||||
{
|
{
|
||||||
CollectionState.Empty => (collection, "None", "The base collection is configured to use no mods.", true),
|
CollectionState.Empty => (collection, "None", "The loaded player character is configured to use no mods.", true),
|
||||||
CollectionState.Selected => (collection, collection.Name,
|
CollectionState.Selected => (collection, collection.Name,
|
||||||
"The collection configured to apply to the loaded player character is already selected as the current collection.", true),
|
"The collection configured to apply to the loaded player character is already selected as the current collection.", true),
|
||||||
CollectionState.Available => (collection, collection.Name,
|
CollectionState.Available => (collection, collection.Name,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue