better profile switching order
This commit is contained in:
parent
9528b10015
commit
274fb8658a
1 changed files with 3 additions and 3 deletions
|
|
@ -40,11 +40,11 @@ NIconButton {
|
||||||
function changeProfile() {
|
function changeProfile() {
|
||||||
if (!hasPP) return;
|
if (!hasPP) return;
|
||||||
if (powerProfiles.profile === PowerProfile.Performance)
|
if (powerProfiles.profile === PowerProfile.Performance)
|
||||||
powerProfiles.profile = PowerProfile.Balanced
|
|
||||||
else if (powerProfiles.profile === PowerProfile.Balanced)
|
|
||||||
powerProfiles.profile = PowerProfile.PowerSaver
|
powerProfiles.profile = PowerProfile.PowerSaver
|
||||||
else if (powerProfiles.profile === PowerProfile.PowerSaver)
|
else if (powerProfiles.profile === PowerProfile.Balanced)
|
||||||
powerProfiles.profile = PowerProfile.Performance
|
powerProfiles.profile = PowerProfile.Performance
|
||||||
|
else if (powerProfiles.profile === PowerProfile.PowerSaver)
|
||||||
|
powerProfiles.profile = PowerProfile.Balanced
|
||||||
}
|
}
|
||||||
|
|
||||||
icon: root.profileIcon()
|
icon: root.profileIcon()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue