Skip to content

Commit

Permalink
Power mode saving #1091
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Aug 15, 2023
1 parent 121a922 commit de4905f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/Fans.cs
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,11 @@ private void ComboPowerMode_Changed(object? sender, EventArgs e)
{
string powerMode = (string)comboPowerMode.SelectedValue;
PowerNative.SetPowerMode(powerMode);
AppConfig.SetMode("powermode", powerMode);

if (PowerNative.GetDefaultPowerMode(Modes.GetCurrentBase()) != powerMode)
AppConfig.SetMode("powermode", powerMode);
else
AppConfig.RemoveMode("powermode");
}

private void ComboBoost_Changed(object? sender, EventArgs e)
Expand Down
2 changes: 1 addition & 1 deletion app/GHelper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PlatformTarget>AnyCPU</PlatformTarget>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<AssemblyVersion>0.111</AssemblyVersion>
<AssemblyVersion>0.112</AssemblyVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down

0 comments on commit de4905f

Please sign in to comment.