mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
volumeosd: Fix qml errors when undefined
Sometimes the HasVolume property apparently is undefined? Handle this case gracefully so it doesn't spam the console.
This commit is contained in:
parent
2b51e0c30c
commit
3cc22dd7fb
1 changed files with 3 additions and 2 deletions
|
|
@ -161,8 +161,9 @@ Controls.Control {
|
|||
from: PulseAudio.MinimalVolume
|
||||
to: PulseAudio.NormalVolume
|
||||
stepSize: to / (to / PulseAudio.NormalVolume * 100.0)
|
||||
visible: HasVolume
|
||||
enabled: VolumeWritable
|
||||
|
||||
visible: model.HasVolume === true // (may be undefined)
|
||||
enabled: model.VolumeWritable
|
||||
opacity: Muted ? 0.5 : 1
|
||||
|
||||
Accessible.name: i18nc("Accessibility data on volume slider", "Adjust volume for %1", baseItem.label)
|
||||
|
|
|
|||
Loading…
Reference in a new issue