From 1844fd6d615cc12a84f9709dfc4c4f7541fa6502 Mon Sep 17 00:00:00 2001 From: James Calligeros Date: Sat, 6 Apr 2024 16:26:32 +1000 Subject: [PATCH] Revert "node/software-dsp: do not hide target node when hide-parent is false" Using parseBool is actually more broken if the property is already parsed as a boolean, and causes the node to remain unhidden even when hide-parent = true. Revert 2a4584216917 to fix this behaviour. Signed-off-by: James Calligeros --- src/scripts/node/software-dsp.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/scripts/node/software-dsp.lua b/src/scripts/node/software-dsp.lua index da410bd7..0474ee5e 100644 --- a/src/scripts/node/software-dsp.lua +++ b/src/scripts/node/software-dsp.lua @@ -6,7 +6,6 @@ -- SPDX-License-Identifier: MIT log = Log.open_topic("s-node") -cutils = require ("common-utils") config = {} config.rules = Conf.get_section_as_json("node.software-dsp.rules", Json.Array{}) @@ -51,7 +50,7 @@ SimpleEventHook { end end - if cutils.parseBool (props["hide-parent"]) then + if props["hide-parent"] then log:debug("Setting permissions to '-' on " .. node.properties["node.name"] .. " for open clients") for client in clients_om:iterate{ type = "client" } do if not client["properties"]["wireplumber.daemon"] then