mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix(audio): 修复调整分辨率导致禁用的声音面板可以设置问题 (#673)
对带HDMI外接音频端口的设备调整分辨率会影响端口状态, dock会激活设备,这与产品设计不符合,禁用端口可以是激活的端口。 Log: 修复调整分辨率导致禁用的声音面板可以设置问题 Bug: https://pms.uniontech.com/bug-view-153899.html Influence: 声音任务栏显示 Change-Id: Ic2602a1c99ba96cd91d52fb7db679b24bfc45622 Co-authored-by: liaohanqin <liaohanqin@uniontech.com>
This commit is contained in:
parent
ce44368f99
commit
7c5f113570
@ -532,7 +532,6 @@ void SoundApplet::activePort(const QString &portId, const uint &cardId)
|
||||
for (Port *it : m_ports) {
|
||||
if (it->id() == portId && it->cardId() == cardId) {
|
||||
it->setIsActive(true);
|
||||
enableDevice(true);
|
||||
}
|
||||
else {
|
||||
it->setIsActive(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user