Commit 338d3ba8 authored by Boris Petrov's avatar Boris Petrov 💾
Browse files

Add button to enable commands on the TimerPage

This allows to enable/disable commands at timeout from the TimerPage.
parent e823410c
......@@ -24,6 +24,7 @@ Kirigami.Page {
property int elapsed: timer == null ? 0 : timer.elapsed
property int duration: timer == null ? 0 : timer.length
property bool running: timer == null ? 0 : timer.running
property bool isCommandTimeout: timer == null ? 0 : timer.isCommandTimeout
// keyboard controls
Keys.onSpacePressed: timer.toggleRunning();
......@@ -50,6 +51,13 @@ Kirigami.Page {
pageStack.pop();
timerModel.remove(timerIndex);
}
},
Kirigami.Action {
icon.name: "dialog-scripts"
text: i18n("Command")
checkable: true
checked: isCommandTimeout
onTriggered: timer.toggleIsCommandTimeout();
}
]
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment