fix power profile jittery
This commit is contained in:
parent
d0a6778004
commit
24c90dae11
1 changed files with 1 additions and 3 deletions
|
|
@ -51,9 +51,7 @@ M.BarIcon {
|
|||
onClicked: {
|
||||
const cycle = ["performance", "balanced", "power-saver"];
|
||||
const idx = cycle.indexOf(root.profile);
|
||||
const next = cycle[(idx + 1) % cycle.length];
|
||||
root.profile = next;
|
||||
setter.next = next;
|
||||
setter.next = cycle[(idx + 1) % cycle.length];
|
||||
setter.running = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue