From 4558982da3559d0b157c390f0605d73b9f72761c Mon Sep 17 00:00:00 2001 From: Curve Date: Sun, 22 Oct 2023 00:42:38 +0200 Subject: [PATCH] fix(patchbay): check for empty properties instead of existing --- CMakeLists.txt | 2 +- package.json | 10 ++++++++-- src/patchbay.impl.cpp | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 85c5b95..e50d351 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.21) -project(venmic LANGUAGES CXX VERSION 1.4) +project(venmic LANGUAGES CXX VERSION 1.5) # -------------------------------------------------------------------------------------------------------- # Library options diff --git a/package.json b/package.json index 12d4a7b..5b7b9ee 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,17 @@ { "name": "@vencord/venmic", "description": "linux audio screenshare for discord (or any electron app) via pipewire", - "keywords": ["pipewire", "electron", "screenshare", "capturer", "audio"], + "keywords": [ + "pipewire", + "electron", + "screenshare", + "capturer", + "audio" + ], "private": false, "license": "MIT", "author": "Curve (https://github.com/Curve)", - "version": "1.4.0", + "version": "1.5.0", "main": "./lib/index.js", "types": "./lib/module.d.ts", "scripts": { diff --git a/src/patchbay.impl.cpp b/src/patchbay.impl.cpp index 97fc6c3..17bfffc 100644 --- a/src/patchbay.impl.cpp +++ b/src/patchbay.impl.cpp @@ -290,7 +290,7 @@ namespace vencord auto desireable = [&](auto &item) { - return ranges::all_of(props, [&](const auto &key) { return item.second.info.props.contains(key); }); + return ranges::all_of(props, [&](const auto &key) { return !item.second.info.props[key].empty(); }); }; auto can_output = [](const auto &item) {