mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-06 23:03:59 +00:00
PowerControl: Update usage of ContextMenu to use events
This commit is contained in:
parent
b67a961f8e
commit
29e373d169
5 changed files with 26 additions and 49 deletions
|
|
@ -26,10 +26,10 @@ namespace PowerControl.Menu
|
|||
}
|
||||
}
|
||||
|
||||
public override void CreateMenu(ToolStripItemCollection collection)
|
||||
public override void CreateMenu(System.Windows.Forms.ContextMenuStrip contextMenu)
|
||||
{
|
||||
foreach (var item in Items)
|
||||
item.CreateMenu(collection);
|
||||
item.CreateMenu(contextMenu);
|
||||
}
|
||||
|
||||
public override void Update()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue