From 5bef37fe40162c7d86bcaae779ce5516561d19cd Mon Sep 17 00:00:00 2001 From: Rafael Rosa Date: Thu, 7 Nov 2024 20:18:15 -0300 Subject: [PATCH] chore: remove disabled Menu when dispose (cherry picked from commit 9c0456d5eac4cbae0418b77472bcdac26ce948c3) --- src/Uno.UI.RemoteControl.VS/Commands/UnoMenuCommand.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Uno.UI.RemoteControl.VS/Commands/UnoMenuCommand.cs b/src/Uno.UI.RemoteControl.VS/Commands/UnoMenuCommand.cs index 7834d2a84f25..76b58839d274 100644 --- a/src/Uno.UI.RemoteControl.VS/Commands/UnoMenuCommand.cs +++ b/src/Uno.UI.RemoteControl.VS/Commands/UnoMenuCommand.cs @@ -152,8 +152,7 @@ public void Dispose() if (_unoMainMenuItem is not null) { - _unoMainMenuItem.Enabled = false; - _unoMainMenuItem.Visible = false; + CommandService.RemoveCommand(_unoMainMenuItem); } } }