Merge branch 'fanpengcheng/bug6382' into 'maintain/5.0'

feat(sound):sound icon display error

See merge request dde-v20/dde-dock!458
This commit is contained in:
范朋程 2020-05-23 09:57:44 +08:00
commit 5844d7c973

View File

@ -179,9 +179,9 @@ void SoundItem::refreshIcon()
QString volumeString;
if (mute)
volumeString = "muted";
else if (volmue / 1000.0f >= double(2) / 3)
else if (volmue / 100.0f >= double(2) / 3)
volumeString = "high";
else if (volmue / 1000.0f >= double(1) / 3)
else if (volmue / 100.0f >= double(1) / 3)
volumeString = "medium";
else
volumeString = "low";