fix flyouts

This commit is contained in:
Damocles 2026-04-12 10:50:00 +02:00
parent 99f71f858d
commit bc3a85d18d
6 changed files with 8 additions and 16 deletions

View file

@ -37,8 +37,10 @@ M.BarIcon {
onRunningChanged: if (!running && next !== "") proc.running = true
}
TapHandler {
onTapped: {
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
const cycle = ["performance", "balanced", "power-saver"];
const idx = cycle.indexOf(root.profile);
setter.next = cycle[(idx + 1) % cycle.length];