Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarVoice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/frontend/StarVoice.cpp')
-rw-r--r--source/frontend/StarVoice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/frontend/StarVoice.cpp b/source/frontend/StarVoice.cpp
index d72bc57..168d23b 100644
--- a/source/frontend/StarVoice.cpp
+++ b/source/frontend/StarVoice.cpp
@@ -225,8 +225,8 @@ void Voice::loadJson(Json const& config, bool skipSave) {
Json Voice::saveJson() const {
return JsonObject{
{"enabled", m_enabled},
+ {"deviceName", m_deviceName ? *m_deviceName : Json()},
{"inputEnabled", m_inputEnabled},
- {"inputDevice", m_deviceName ? *m_deviceName : Json()},
{"threshold", m_threshold},
{"inputVolume", m_inputVolume},
{"outputVolume", m_outputVolume},