fix power profile jittery

This commit is contained in:
Damocles 2026-04-12 15:49:45 +02:00
parent d0a6778004
commit 24c90dae11

View file

@ -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;
}
}