fixed bug#131074 虚拟机使用openkylin,系统音量固定在17%,调节音量会回弹到17%

This commit is contained in:
pengziping 2022-08-12 09:55:36 +08:00
parent bfe02ed82d
commit e56fdf0363
2 changed files with 8 additions and 0 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
ukui-media (3.1.0.2022+0310-ok2~0812) yangtze; urgency=medium
* close-cd #131074 虚拟机使用openkylin系统音量固定在17%调节音量会回弹到17%
-- pengziping <pengziping@pengziping.kylinos.cn> Fri, 12 Aug 2022 09:53:24 +0800
ukui-media (3.1.0.2022+0310-ok2~0725) yangtze; urgency=medium ukui-media (3.1.0.2022+0310-ok2~0725) yangtze; urgency=medium
* close-cd #130430 音效主题-寻光音效未汉化 * close-cd #130430 音效主题-寻光音效未汉化

View File

@ -92,6 +92,7 @@ bool CustomSound::isExist(QString nodeName)
nodeName.remove(")"); nodeName.remove(")");
nodeName.remove("["); nodeName.remove("[");
nodeName.remove("]"); nodeName.remove("]");
nodeName.remove(";");
if(nodeName != "" && nodeName.at(0)>='0' && nodeName.at(0)<='9'){ if(nodeName != "" && nodeName.at(0)>='0' && nodeName.at(0)<='9'){
nodeName = "Audio_"+nodeName; nodeName = "Audio_"+nodeName;
} }
@ -139,6 +140,7 @@ int CustomSound::addXmlNode(QString nodeName, bool initState)
nodeName.remove(")"); nodeName.remove(")");
nodeName.remove("["); nodeName.remove("[");
nodeName.remove("]"); nodeName.remove("]");
nodeName.remove(";");
if(nodeName != "" && nodeName.at(0)>='0' && nodeName.at(0)<='9'){ if(nodeName != "" && nodeName.at(0)>='0' && nodeName.at(0)<='9'){
nodeName = "Audio_"+nodeName; nodeName = "Audio_"+nodeName;
} }