mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-01-20 07:20:27 +01:00
PowerControl: Fix MenuItemWithOptions delayTimer
This commit is contained in:
parent
1ff7bed567
commit
b67a961f8e
|
|
@ -19,6 +19,14 @@ namespace PowerControl.Menu
|
|||
public MenuItemWithOptions()
|
||||
{
|
||||
this.Selectable = true;
|
||||
|
||||
delayTimer.Tick += delegate (object? sender, EventArgs e)
|
||||
{
|
||||
if (delayTimer != null)
|
||||
delayTimer.Stop();
|
||||
|
||||
onApply();
|
||||
};
|
||||
}
|
||||
|
||||
public override void Reset()
|
||||
|
|
|
|||
Loading…
Reference in a new issue