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:
@@ -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
|
||||
|
Reference in New Issue
Block a user