fix flyouts
This commit is contained in:
parent
99f71f858d
commit
bc3a85d18d
6 changed files with 8 additions and 16 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue