From e6035bfee904d43f71e047ffb77492a49e994141 Mon Sep 17 00:00:00 2001 From: Neil Horne <15316949+elecpower@users.noreply.github.com> Date: Mon, 18 Aug 2025 12:45:18 +1000 Subject: [PATCH] fix(cpn): model print function lua script name (#6496) Co-authored-by: philmoz --- companion/src/firmwares/customfunctiondata.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/companion/src/firmwares/customfunctiondata.cpp b/companion/src/firmwares/customfunctiondata.cpp index bd505ab63..7d1646659 100644 --- a/companion/src/firmwares/customfunctiondata.cpp +++ b/companion/src/firmwares/customfunctiondata.cpp @@ -203,6 +203,9 @@ QString CustomFunctionData::paramToString(const ModelData * model) const return QString("%1= %2%3").arg(val < 0 ? "-" : "+").arg(abs(val)).arg(unit); } } + else if (func == FuncPlayScript || func == FuncRGBLed) { + return paramarm; + } return ""; } @@ -499,8 +502,7 @@ bool CustomFunctionData::isParamAvailable() const FuncBindExternalModule, FuncRacingMode, FuncDisableTouch, - FuncDisableAudioAmp, - FuncRGBLed + FuncDisableAudioAmp }; return funcList.contains(func) ? false : true;