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 2a45842169 to fix this behaviour.

Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
This commit is contained in:
James Calligeros
2024-04-06 16:26:32 +10:00
parent 4c57647203
commit 1844fd6d61

View File

@@ -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