mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-16 10:42:06 -04:00
audio: defensive checks on PwNode objects
This commit is contained in:
@@ -351,8 +351,8 @@ Rectangle {
|
||||
deviceRipple.trigger(mapped.x, mapped.y);
|
||||
}
|
||||
onClicked: {
|
||||
if (modelData) {
|
||||
Pipewire.preferredDefaultAudioSource = modelData;
|
||||
if (modelData && modelData.name) {
|
||||
AudioService.setDefaultSourceByName(modelData.name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -355,8 +355,8 @@ Rectangle {
|
||||
deviceRipple.trigger(mapped.x, mapped.y);
|
||||
}
|
||||
onClicked: {
|
||||
if (modelData) {
|
||||
Pipewire.preferredDefaultAudioSink = modelData;
|
||||
if (modelData && modelData.name) {
|
||||
AudioService.setDefaultSinkByName(modelData.name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user