mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-05 14:25:40 +00:00
PowerControl: Update MenuItem on Opening
This commit is contained in:
parent
81d4be30ce
commit
f6dbf3c199
2 changed files with 16 additions and 19 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue