Skip to content

Commit

Permalink
Added backlight delay
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Jan 5, 2025
1 parent eed055b commit bdfef9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Input/InputDispatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -898,15 +898,15 @@ public static void AutoKeyboard()
Aura.Init();
Aura.ApplyPower();
Aura.ApplyAura();
Aura.Init();
SetBacklightAuto();
SetBacklightAuto(true);
}


public static void SetBacklightAuto()
public static void SetBacklightAuto(bool init = false)
{
if (lidClose) return;
Aura.ApplyBrightness(GetBacklight(), "Auto");
if (init) Aura.Init();
Aura.ApplyBrightness(GetBacklight(), "Auto", init);
}

public static void SetBacklight(int delta, bool force = false)
Expand Down

0 comments on commit bdfef9f

Please sign in to comment.