mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-03-20 03:34:37 +01:00
Do not create separataor in context menu
This commit is contained in:
parent
5f940c0ee4
commit
7a66bb8858
|
|
@ -48,8 +48,6 @@ namespace PowerControl
|
|||
|
||||
public class MenuItemSeparator : MenuItem
|
||||
{
|
||||
private ToolStripItem toolStripItem;
|
||||
|
||||
public MenuItemSeparator()
|
||||
{
|
||||
Selectable = false;
|
||||
|
|
@ -57,11 +55,6 @@ namespace PowerControl
|
|||
|
||||
public override void CreateMenu(ToolStripItemCollection collection)
|
||||
{
|
||||
if (toolStripItem != null)
|
||||
return;
|
||||
|
||||
toolStripItem = new ToolStripSeparator();
|
||||
collection.Add(toolStripItem);
|
||||
}
|
||||
|
||||
public override string Render(MenuItem selected)
|
||||
|
|
|
|||
Loading…
Reference in a new issue