Sat 6 Jul 01:11:18 CEST 2024
This commit is contained in:
parent
38266ed3e9
commit
3326154e0d
|
@ -189,17 +189,16 @@ function Right() {
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
on_clicked: () => {
|
on_clicked: () => {
|
||||||
switch (powerProfiles.active_profile) {
|
let next = false
|
||||||
case 'balanced':
|
for (const profile of powerProfiles.profiles) {
|
||||||
powerProfiles.active_profile = 'performance';
|
if (next) {
|
||||||
break;
|
powerProfiles.active_profile = profile["Profile"]
|
||||||
case 'performance':
|
return
|
||||||
powerProfiles.active_profile = 'power-saver';
|
} else if (profile["Profile"] === powerProfiles.active_profile) {
|
||||||
break;
|
next = true
|
||||||
default:
|
}
|
||||||
powerProfiles.active_profile = 'balanced';
|
}
|
||||||
break;
|
powerProfiles.active_profile = powerProfiles.profiles[0]["Profile"]
|
||||||
};
|
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
Widget.Label({
|
Widget.Label({
|
||||||
|
|
Loading…
Reference in New Issue