Skip to content

A Swiss Army knife for developers.

Fixed bug

Etienne Baudouxc76b2be86951
diff --git a/src/app/dev/DevToys.UI.Framework/Controls/GuiTool/UISettingGroupPresenter.xaml.cs b/src/app/dev/DevToys.UI.Framework/Controls/GuiTool/UISettingGroupPresenter.xaml.cs
index 2f37629f7..47ac8d8ae 100644
--- a/src/app/dev/DevToys.UI.Framework/Controls/GuiTool/UISettingGroupPresenter.xaml.cs
+++ b/src/app/dev/DevToys.UI.Framework/Controls/GuiTool/UISettingGroupPresenter.xaml.cs
@@ -103,7 +103,6 @@ public sealed partial class UISettingGroupPresenter : Expander
ContentStackPanel.Children.Clear();
if (UISettingGroup.Children is not null)
{
- bool allChildrenAreUISetting = true;
for (int i = 0; i < UISettingGroup.Children.Length; i++)
{
IUIElement element = UISettingGroup.Children[i];
@@ -135,7 +134,7 @@ public sealed partial class UISettingGroupPresenter : Expander
}
// Adjust the spacing inside of the group.
- if (allChildrenAreUISetting)
+ if (UISettingGroup.ChildrenAreAllSettings)
{
ContentStackPanel.Spacing = 0;
ContentStackPanel.Padding = default;