mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Some current collection fixes.
This commit is contained in:
parent
89835b437a
commit
cfdff30189
2 changed files with 10 additions and 4 deletions
|
|
@ -562,7 +562,7 @@ namespace Penumbra.UI
|
|||
if( ImGui.Checkbox( label, ref enabled ) && oldEnabled != enabled )
|
||||
{
|
||||
Mod.Settings.Settings[ group.GroupName ] ^= 1 << idx;
|
||||
if( Mod.Settings.Enabled )
|
||||
if( Mod.Settings.Enabled && _modManager.Collections.CurrentCollection.Cache != null )
|
||||
{
|
||||
_modManager.Collections.CurrentCollection.CalculateEffectiveFileList( Mod.Data.BasePath,
|
||||
Mod.Data.Resources.MetaManipulations.Count > 0 );
|
||||
|
|
@ -602,7 +602,7 @@ namespace Penumbra.UI
|
|||
&& code != Mod.Settings.Settings[ group.GroupName ] )
|
||||
{
|
||||
Mod.Settings.Settings[ group.GroupName ] = code;
|
||||
if( Mod.Settings.Enabled )
|
||||
if( Mod.Settings.Enabled && _modManager.Collections.CurrentCollection.Cache != null )
|
||||
{
|
||||
_modManager.Collections.CurrentCollection.CalculateEffectiveFileList( Mod.Data.BasePath,
|
||||
Mod.Data.Resources.MetaManipulations.Count > 0 );
|
||||
|
|
|
|||
|
|
@ -203,8 +203,11 @@ namespace Penumbra.UI
|
|||
Mod.Settings.Priority = priority;
|
||||
var collection = _modManager.Collections.CurrentCollection;
|
||||
collection.Save( _base._plugin.PluginInterface! );
|
||||
if( collection.Cache != null )
|
||||
{
|
||||
collection.CalculateEffectiveFileList( _modManager.BasePath, Mod.Data.Resources.MetaManipulations.Count > 0 );
|
||||
}
|
||||
}
|
||||
|
||||
if( ImGui.IsItemHovered() )
|
||||
{
|
||||
|
|
@ -221,9 +224,12 @@ namespace Penumbra.UI
|
|||
Mod.Settings.Enabled = enabled;
|
||||
var collection = _modManager.Collections.CurrentCollection;
|
||||
collection.Save( _base._plugin.PluginInterface! );
|
||||
if( collection.Cache != null )
|
||||
{
|
||||
collection.CalculateEffectiveFileList( _modManager.BasePath, Mod.Data.Resources.MetaManipulations.Count > 0 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void DrawSortOrder()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue