ags fix volume
This commit is contained in:
parent
96e2ee14e3
commit
3b5fdcb31e
1 changed files with 4 additions and 3 deletions
|
@ -115,9 +115,10 @@ function Volume() {
|
|||
|
||||
const volume = Widget.Label({
|
||||
// label: Math.round(audio.speaker.volume * 100).toString(),
|
||||
label: !audio.speaker.is_muted
|
||||
? ` ${Math.round(audio.speaker.volume * 100).toString()}`
|
||||
: "",
|
||||
// label: !audio.speaker.is_muted
|
||||
// ? ` ${Math.round(audio.speaker.volume * 100).toString()}`
|
||||
// : "",
|
||||
label: audio.speaker.bind("volume").as((x) => `${Math.round(x * 100)}%`)
|
||||
})
|
||||
|
||||
return Widget.Box({
|
||||
|
|
Loading…
Reference in a new issue