From be453b86b5955fe48ca9525f5c618d6e6db5480f Mon Sep 17 00:00:00 2001 From: Mohamed Adil Date: Fri, 10 Nov 2023 19:47:27 +0100 Subject: [PATCH] remove folder name from lable --- src/Parameters/Parameters.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Parameters/Parameters.tsx b/src/Parameters/Parameters.tsx index 68dc30a1..0f5d029d 100644 --- a/src/Parameters/Parameters.tsx +++ b/src/Parameters/Parameters.tsx @@ -42,7 +42,10 @@ export function Parameters(props: ParametersProps) { if (!folders.get(folderKey)) folders.set(folderKey, pane.addFolder({ title: folderKey })); - folders.get(folderKey)?.addBinding(tweakParams, key, bindingOptions); + folders.get(folderKey)?.addBinding(tweakParams, key, { + ...bindingOptions, + label: parameter.label || key.split("/")[1], + }); } else { pane.addBinding(tweakParams, key, bindingOptions); }