Skip to content

Commit

Permalink
fix(patchbay): check for empty properties instead of existing
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Oct 21, 2023
1 parent cce0577 commit 4558982
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/patchbay.impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 4558982

Please sign in to comment.