Show performance notifications only when mode changes

This commit is contained in:
seerge
2023-03-03 12:41:53 +01:00
parent 8f215dafab
commit 96c85f69fe
3 changed files with 18 additions and 3 deletions

View File

@@ -497,7 +497,7 @@ namespace GHelper
break;
}
int oldMode = Program.config.getConfig("performance_mode");
Program.config.setConfig("performance_"+(int)SystemInformation.PowerStatus.PowerLineStatus, PerformanceMode);
Program.config.setConfig("performance_mode", PerformanceMode);
@@ -515,7 +515,7 @@ namespace GHelper
fans.ResetApplyLabel();
}
if (notify)
if (notify && (oldMode != PerformanceMode))
{
try
{