mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Fix settings not taking effect.
This commit is contained in:
parent
3c9c892a83
commit
5952d5e312
1 changed files with 13 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ namespace Penumbra.UI
|
||||||
|
|
||||||
private void Save()
|
private void Save()
|
||||||
{
|
{
|
||||||
_modManager.CurrentCollection.Save( _base._plugin.PluginInterface! );
|
_modManager.Collections.CurrentCollection.Save( _base._plugin.PluginInterface! );
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DrawAboutTab()
|
private void DrawAboutTab()
|
||||||
|
|
@ -601,6 +601,12 @@ namespace Penumbra.UI
|
||||||
if( ImGui.Checkbox( label, ref enabled ) && oldEnabled != enabled )
|
if( ImGui.Checkbox( label, ref enabled ) && oldEnabled != enabled )
|
||||||
{
|
{
|
||||||
Mod.Settings.Settings[ group.GroupName ] ^= 1 << idx;
|
Mod.Settings.Settings[ group.GroupName ] ^= 1 << idx;
|
||||||
|
if( Mod.Settings.Enabled )
|
||||||
|
{
|
||||||
|
_modManager.Collections.CurrentCollection.CalculateEffectiveFileList( Mod.Data.BasePath,
|
||||||
|
Mod.Data.Resources.MetaManipulations.Count > 0 );
|
||||||
|
}
|
||||||
|
|
||||||
Save();
|
Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -635,6 +641,12 @@ namespace Penumbra.UI
|
||||||
&& code != Mod.Settings.Settings[ group.GroupName ] )
|
&& code != Mod.Settings.Settings[ group.GroupName ] )
|
||||||
{
|
{
|
||||||
Mod.Settings.Settings[ group.GroupName ] = code;
|
Mod.Settings.Settings[ group.GroupName ] = code;
|
||||||
|
if( Mod.Settings.Enabled )
|
||||||
|
{
|
||||||
|
_modManager.Collections.CurrentCollection.CalculateEffectiveFileList( Mod.Data.BasePath,
|
||||||
|
Mod.Data.Resources.MetaManipulations.Count > 0 );
|
||||||
|
}
|
||||||
|
|
||||||
Save();
|
Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue