PowerControl: Update MenuItem on Opening

This commit is contained in:
Kamil Trzciński 2022-12-19 23:45:28 +01:00
parent 81d4be30ce
commit f6dbf3c199
2 changed files with 16 additions and 19 deletions

View file

@ -52,11 +52,6 @@ namespace PowerControl
var contextMenu = new System.Windows.Forms.ContextMenuStrip(components);
contextMenu.Opening += delegate (object? sender, CancelEventArgs e)
{
rootMenu.Update();
};
rootMenu.Visible = false;
rootMenu.Update();
rootMenu.CreateMenu(contextMenu);