diff --git a/modules/PowerProfile.qml b/modules/PowerProfile.qml index 236437a..904492f 100644 --- a/modules/PowerProfile.qml +++ b/modules/PowerProfile.qml @@ -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; } }