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: {
|
onClicked: {
|
||||||
const cycle = ["performance", "balanced", "power-saver"];
|
const cycle = ["performance", "balanced", "power-saver"];
|
||||||
const idx = cycle.indexOf(root.profile);
|
const idx = cycle.indexOf(root.profile);
|
||||||
const next = cycle[(idx + 1) % cycle.length];
|
setter.next = cycle[(idx + 1) % cycle.length];
|
||||||
root.profile = next;
|
|
||||||
setter.next = next;
|
|
||||||
setter.running = true;
|
setter.running = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue