From dbbbbc55af5c1b5e81e7a493a9b5fe5718f15c07 Mon Sep 17 00:00:00 2001 From: Roxie Linden Date: Thu, 14 Mar 2024 20:04:39 -0700 Subject: Refactor device selection logic This refactor fixed a few bugs. There is an annoying 'click' when changing devices, however. This will be addressed in the future. --- indra/llwebrtc/llwebrtc.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'indra/llwebrtc/llwebrtc.h') diff --git a/indra/llwebrtc/llwebrtc.h b/indra/llwebrtc/llwebrtc.h index 43b48e79ab..dab7774499 100644 --- a/indra/llwebrtc/llwebrtc.h +++ b/indra/llwebrtc/llwebrtc.h @@ -74,12 +74,10 @@ class LLWebRTCVoiceDevice public: std::string mDisplayName; // friendly name for user interface purposes std::string mID; // internal value for selection - bool mCurrent; // current device - LLWebRTCVoiceDevice(const std::string &display_name, const std::string &id, bool current) : + LLWebRTCVoiceDevice(const std::string &display_name, const std::string &id) : mDisplayName(display_name), - mID(id), - mCurrent(current) + mID(id) {}; }; -- cgit v1.2.3