Commit 6cb27d34 authored by DonLakeFlyer's avatar DonLakeFlyer

Add Clear All button

parent a27bf5cb
......@@ -43,8 +43,22 @@ QGCView {
id: categoryColumn
spacing: ScreenTools.defaultFontPixelHeight / 2
QGCButton {
text: qsTr("Clear All")
onClicked: {
var logCats = QGroundControl.loggingCategories()
for (var i=0; i<logCats.length; i++) {
QGroundControl.setCategoryLoggingOn(logCats[i], false)
}
QGroundControl.updateLoggingFilterRules()
categoryRepeater.model = undefined
categoryRepeater.model = QGroundControl.loggingCategories()
}
}
Repeater {
model: QGroundControl.loggingCategories()
id: categoryRepeater
model: QGroundControl.loggingCategories()
QGCCheckBox {
text: modelData
......
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