aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/assistant/Assistant.qml
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/assistant/Assistant.qml')
-rw-r--r--desktop/assistant/Assistant.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/desktop/assistant/Assistant.qml b/desktop/assistant/Assistant.qml
index 865f157..c4d0771 100644
--- a/desktop/assistant/Assistant.qml
+++ b/desktop/assistant/Assistant.qml
@@ -212,9 +212,12 @@ Scope {
property var mic: null // the recording's Process, null when not recording
property int micSecs: 0
readonly property bool recording: root.mic !== null
+ // Whether the model in use takes audio. Set from shell.qml.
+ property bool hears: true
function record() {
- if (root.recording || !root.connected || root.busy || root.opRunning || root.blocked) return;
+ if (root.recording || !root.connected || !root.hears || root.busy || root.opRunning
+ || root.blocked) return;
root.notice = "";
root.micSecs = 0;
root.mic = micRun.createObject(root);