fix rounding issue in Pw.qml

This commit is contained in:
lucy 2026-08-02 22:11:46 +02:00
commit cfca4d5280

View file

@ -62,7 +62,7 @@ Rectangle {
opacity: root.defaultAudio?.audio.muted ? 0.6 : 1.0 opacity: root.defaultAudio?.audio.muted ? 0.6 : 1.0
} }
StyledText { StyledText {
text: Math.floor(root.defaultAudio?.audio.volume * 100) + "%" text: Math.round(root.defaultAudio?.audio.volume * 100) + "%"
opacity: root.defaultAudio?.audio.muted ? 0.6 : 1.0 opacity: root.defaultAudio?.audio.muted ? 0.6 : 1.0
} }
} }