Browse Source
Merge branch 'master' into linux-shutdown-prevention-xsmp
pull/6883/head
Jumar Macato
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.Controls/MenuItem.cs
|
|
|
@ -387,7 +387,7 @@ namespace Avalonia.Controls |
|
|
|
parent = parent.Parent; |
|
|
|
} |
|
|
|
|
|
|
|
_isEmbeddedInMenu = parent is IMenu; |
|
|
|
_isEmbeddedInMenu = parent.FindLogicalAncestorOfType<IMenu>(true) != null; |
|
|
|
} |
|
|
|
|
|
|
|
protected override void OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs e) |
|
|
|
|