mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix: 修复快捷面板中音量调节不响应音量增强设置的问题
代码中未处理音量增强的情况 Log: 修复快捷面板中音量调节不响应音量增强设置的问题 Influence: 任务栏-音量插件-音量增强时的交互 Bug: https://pms.uniontech.com/bug-view-171869.html Change-Id: I92e8d5eed9ecba3418edd4d562176b07b0fe1ac6
This commit is contained in:
parent
65d9cfa6ef
commit
fa7a80b215
@ -93,6 +93,10 @@ void SoundWidget::initConnection()
|
||||
connect(m_defaultSink, &DBusSink::VolumeChanged, m_sliderContainer, &SliderContainer::updateSliderValue);
|
||||
});
|
||||
|
||||
connect(m_dbusAudio, &DBusAudio::MaxUIVolumeChanged, this, [ = ] (double maxValue) {
|
||||
m_sliderContainer->setRange(0, std::round(maxValue * 100.00));
|
||||
});
|
||||
|
||||
connect(m_sliderContainer, &SliderContainer::sliderValueChanged, this, [ this ](int value) {
|
||||
m_defaultSink->SetVolume(value * 0.01, true);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user