Browse Source
Merge pull request #6913 from AvaloniaUI/fix-trayicon-command-executes-twice
Fix TrayIcon commands executes twice
pull/6925/head
Dan Walmsley
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) |
|
|
|
|