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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user