mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Implement media device tracking on macOS.
This commit is contained in:
@@ -555,7 +555,8 @@ void ChooseAudioDeviceBox(
|
||||
return;
|
||||
}
|
||||
const auto weak = Ui::MakeWeak(box);
|
||||
chosen(state->ids.take(value).value_or(kDefaultDeviceId));
|
||||
const auto i = state->ids.find(value);
|
||||
chosen((i != end(state->ids)) ? i->second : kDefaultDeviceId);
|
||||
if (weak) {
|
||||
box->closeBox();
|
||||
}
|
||||
|
Reference in New Issue
Block a user