From 70a5ee9485bc21133a3d3edcac12c23feffe985d Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Sun, 31 Jul 2022 11:34:44 +0200 Subject: [PATCH] Small fix for Enable All. --- Penumbra/UI/ConfigWindow.ModPanel.Settings.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Penumbra/UI/ConfigWindow.ModPanel.Settings.cs b/Penumbra/UI/ConfigWindow.ModPanel.Settings.cs index be6f5170..80dd0fad 100644 --- a/Penumbra/UI/ConfigWindow.ModPanel.Settings.cs +++ b/Penumbra/UI/ConfigWindow.ModPanel.Settings.cs @@ -1,3 +1,4 @@ +using System; using System.Numerics; using Dalamud.Interface; using ImGuiNET; @@ -224,7 +225,8 @@ public partial class ConfigWindow ImGui.Separator(); if( ImGui.Selectable( "Enable All" ) ) { - Penumbra.CollectionManager.Current.SetModSetting( _mod.Index, groupIdx, ( 1u << group.Count ) - 1u ); + flags = group.Count == 32 ? uint.MaxValue : ( 1u << group.Count ) - 1u; + Penumbra.CollectionManager.Current.SetModSetting( _mod.Index, groupIdx, flags ); } if( ImGui.Selectable( "Disable All" ) )