From c127b503030636081e86cca6160d7046552691fd Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Mon, 24 Jul 2023 20:58:32 +1000 Subject: Fix discrepancy in voice saving --- source/frontend/StarVoice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/frontend/StarVoice.cpp') 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}, -- cgit v1.2.3