Skip to content

Commit

Permalink
re-apply brightness/temp after displays changed
Browse files Browse the repository at this point in the history
  • Loading branch information
tombayley committed Aug 29, 2023
1 parent a8615a1 commit 8a720bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions NightGlow/Services/NightGlowService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.Diagnostics;
using System.Linq;
using System.Reactive.Disposables;
using System.Threading.Tasks;

namespace NightGlow.Services;

Expand Down Expand Up @@ -107,6 +108,11 @@ private void DisplaysChanged()
{
_gammaService.InvalidateDeviceContexts();
_ddcService.UpdateMonitors();

Task.Delay(2000).ContinueWith(_ =>
{
UpdateConfiguration();
});
}

public void UnregisterHotKeys()
Expand Down

0 comments on commit 8a720bc

Please sign in to comment.