Fix discrepancy in voice saving
This commit is contained in:
parent
7b4ae73647
commit
c127b50303
@ -225,8 +225,8 @@ void Voice::loadJson(Json const& config, bool skipSave) {
|
|||||||
Json Voice::saveJson() const {
|
Json Voice::saveJson() const {
|
||||||
return JsonObject{
|
return JsonObject{
|
||||||
{"enabled", m_enabled},
|
{"enabled", m_enabled},
|
||||||
|
{"deviceName", m_deviceName ? *m_deviceName : Json()},
|
||||||
{"inputEnabled", m_inputEnabled},
|
{"inputEnabled", m_inputEnabled},
|
||||||
{"inputDevice", m_deviceName ? *m_deviceName : Json()},
|
|
||||||
{"threshold", m_threshold},
|
{"threshold", m_threshold},
|
||||||
{"inputVolume", m_inputVolume},
|
{"inputVolume", m_inputVolume},
|
||||||
{"outputVolume", m_outputVolume},
|
{"outputVolume", m_outputVolume},
|
||||||
|
Loading…
Reference in New Issue
Block a user