2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix build and working on macOS.

This commit is contained in:
John Preston
2020-06-19 21:13:43 +04:00
parent b49a8e6dc1
commit 3bb352e0e5
15 changed files with 83 additions and 52 deletions

View File

@@ -293,12 +293,12 @@ void Calls::setupContent() {
tr::lng_settings_call_audio_ducking(),
st::settingsButton
)->toggleOn(
rpl::single(Global::CallAudioDuckingEnabled())
rpl::single(settings.callAudioDuckingEnabled())
)->toggledValue() | rpl::filter([](bool enabled) {
return (enabled != Global::CallAudioDuckingEnabled());
return (enabled != Core::App().settings().callAudioDuckingEnabled());
}) | rpl::start_with_next([=](bool enabled) {
Global::SetCallAudioDuckingEnabled(enabled);
_controller->session().saveSettingsDelayed();
Core::App().settings().setCallAudioDuckingEnabled(enabled);
Core::App().saveSettingsDelayed();
if (const auto call = _controller->session().calls().currentCall()) {
call->setAudioDuckingEnabled(enabled);
}