Skip to content

Commit

Permalink
Max refresh rate config storage for backup #2871
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Jul 24, 2024
1 parent c35cbe5 commit 258bf30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Display/ScreenControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ public void InitScreen()
int frequency = ScreenNative.GetRefreshRate(laptopScreen);
int maxFrequency = ScreenNative.GetMaxRefreshRate(laptopScreen);

if (maxFrequency > 0) AppConfig.Set("max_frequency", maxFrequency);
else maxFrequency = AppConfig.Get("max_frequency");

bool screenAuto = AppConfig.Is("screen_auto");
bool overdriveSetting = Program.acpi.IsOverdriveSupported() && !AppConfig.IsNoOverdrive();

Expand Down

0 comments on commit 258bf30

Please sign in to comment.