mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-06 19:14:57 +11:00
services/pipewire: expose node type
This commit is contained in:
parent
6b3d64e32a
commit
ee570ec623
5 changed files with 100 additions and 23 deletions
|
|
@ -146,7 +146,7 @@ void PwDefaultTracker::onNodeDestroyed(QObject* node) {
|
|||
|
||||
void PwDefaultTracker::changeConfiguredSink(PwNode* node) {
|
||||
if (node != nullptr) {
|
||||
if (!node->isSink) {
|
||||
if (!node->type.testFlags(PwNodeType::AudioSink)) {
|
||||
qCCritical(logDefaults) << "Cannot change default sink to a node that is not a sink.";
|
||||
return;
|
||||
}
|
||||
|
|
@ -168,7 +168,7 @@ void PwDefaultTracker::changeConfiguredSinkName(const QString& sink) {
|
|||
|
||||
void PwDefaultTracker::changeConfiguredSource(PwNode* node) {
|
||||
if (node != nullptr) {
|
||||
if (node->isSink) {
|
||||
if (!node->type.testFlags(PwNodeType::AudioSource)) {
|
||||
qCCritical(logDefaults) << "Cannot change default source to a node that is not a source.";
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue