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); } } }