Skip to content

Commit

Permalink
Can jest get from the layers property.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Aug 16, 2024
1 parent 34b82e8 commit 5b577ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnl

public void TriggerDisallowEditEffect()
{
InternalChildren.OfType<Layer>().ForEach(x => x.TriggerDisallowEditEffect(bindableMode.Value));
Layers.ForEach(x => x.TriggerDisallowEditEffect(bindableMode.Value));
}

[BackgroundDependencyLoader]
Expand All @@ -86,7 +86,7 @@ private void triggerWritableVersionChanged()

// adjust the style.
bool editable = lockReason == null;
InternalChildren.OfType<Layer>().ForEach(x => x.UpdateDisableEditState(editable));
Layers.ForEach(x => x.UpdateDisableEditState(editable));
}

public LocalisableString TooltipText => lockReason ?? string.Empty;
Expand Down

0 comments on commit 5b577ba

Please sign in to comment.