From b858d3e20725214a0f121d3a271a7cdcedad0cb5 Mon Sep 17 00:00:00 2001 From: Doug McLain Date: Thu, 5 Oct 2023 15:36:25 -0400 Subject: [PATCH] Add debug output option to settings tab --- SettingsTab.qml | 16 ++++++++++++++-- android/AndroidManifest.xml | 2 +- droidstar.cpp | 1 + droidstar.h | 2 ++ iax.cpp | 2 -- mode.cpp | 2 +- mode.h | 1 + 7 files changed, 20 insertions(+), 6 deletions(-) diff --git a/SettingsTab.qml b/SettingsTab.qml index 22455ff..c5e8f87 100644 --- a/SettingsTab.qml +++ b/SettingsTab.qml @@ -71,13 +71,14 @@ Item { property alias modemNXDNTXLevelEdit: _modemNXDNTXLevelEdit property alias modemBaudEdit: _modemBaudEdit property alias mmdvmBox: _mmdvmBox + property alias debugBox: _debugBox Flickable { id: flickable anchors.fill: parent contentWidth: parent.width - contentHeight: _mmdvmBox.y + - _mmdvmBox.height + 10 + contentHeight: _debugBox.y + + _debugBox.height + 10 flickableDirection: Flickable.VerticalFlick clip: true ScrollBar.vertical: ScrollBar {} @@ -1079,5 +1080,16 @@ Item { droidstar.set_mmdvm_direct(_mmdvmBox.checked) } } + CheckBox { + id: _debugBox + x: 10 + y: 1390 + width: parent.width + height: 25 + text: qsTr("Debug output to stderr") + onClicked:{ + droidstar.set_debug(_debugBox.checked) + } + } } } diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index 0fcef6a..c9fceba 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -1,5 +1,5 @@ - +