Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
retailcoder committed Mar 24, 2024
1 parent 396f19d commit 4ac0f5a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public SettingGroupViewModel(TypedRubberduckSetting<BooleanRubberduckSetting[]>
EnableAllItemsCommand = new DelegateCommand(Services.UIServiceHelper.Instance,
parameter =>
{
var isEnabled = (bool)parameter;
var isEnabled = Items.OfType<BooleanSettingViewModel>().Any(e => !e.Value);
foreach (var item in Items.OfType<BooleanSettingViewModel>())
{
item.Value = isEnabled;
Expand Down

0 comments on commit 4ac0f5a

Please sign in to comment.