mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
fix: unmute when changed volume
Closed: https://github.com/linuxdeepin/developer-center/issues/3812
This commit is contained in:
parent
c92497ce03
commit
09b5434d3c
@ -204,6 +204,9 @@ void SoundDevicesWidget::initConnection()
|
||||
});
|
||||
connect(m_sliderContainer, &SliderContainer::sliderValueChanged, this, [ this ](int value) {
|
||||
m_sinkInter->SetVolume(value * 0.01, true);
|
||||
if (m_sinkInter->mute()) {
|
||||
m_sinkInter->SetMuteQueued(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -84,6 +84,9 @@ void SoundWidget::initConnection()
|
||||
|
||||
connect(m_sliderContainer, &SliderContainer::sliderValueChanged, this, [ this ](int value) {
|
||||
m_defaultSink->SetVolume(value * 0.01, true);
|
||||
if (m_defaultSink->mute()) {
|
||||
m_defaultSink->SetMuteQueued(false);
|
||||
}
|
||||
});
|
||||
|
||||
connect(m_defaultSink, &DBusSink::MuteChanged, this, [ this ] {
|
||||
|
Loading…
x
Reference in New Issue
Block a user