diff --git a/Runtime/UI/MacroUI.cs b/Runtime/UI/MacroUI.cs index c583aaa..ff36130 100644 --- a/Runtime/UI/MacroUI.cs +++ b/Runtime/UI/MacroUI.cs @@ -431,12 +431,13 @@ namespace XericLibrary.Runtime.MacroLibrary _nowSelectToggleIndex = i; } - // 如果不允许为空的情况下还为空,那就默认标记一个 - if (!ToggleGroup.allowSwitchOff && _nowSelectToggleIndex < 0) - SetToggleOnWithoutNotify(0); - if (_noInit) + { + // 如果不允许为空的情况下还为空,那就默认标记一个 + if (!ToggleGroup.allowSwitchOff && _nowSelectToggleIndex < 0) + SetToggleOnWithoutNotify(0); SetToggelGroupItems(); + } _mappingDirty = false; _noInit = false;