mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-05 06:15:26 +00:00
PowerControl: Fix MenuItemWithOptions delayTimer
This commit is contained in:
parent
1ff7bed567
commit
b67a961f8e
1 changed files with 8 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue