Skip to content

Commit

Permalink
fix(cpn): sf/gf sd logs minimum and default time (#5561)
Browse files Browse the repository at this point in the history
  • Loading branch information
elecpower authored and pfeerick committed Sep 30, 2024
1 parent f4a6123 commit 6c3aaef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion companion/src/modeledit/customfunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ void CustomFunctionsPanel::functionEdited()
fswtchRepeat[index]->setModel(tabModelFactory->getItemModel(repeatLuaId));
else
fswtchRepeat[index]->setModel(tabModelFactory->getItemModel(repeatId));
if (functions[index].func == FuncLogs)
functions[index].param = 10; // 1 sec
refreshCustomFunction(index);
emit modified();
lock = false;
Expand Down Expand Up @@ -399,7 +401,7 @@ void CustomFunctionsPanel::refreshCustomFunction(int i, bool modified)
}
else if (func == FuncLogs) {
fswtchParam[i]->setDecimals(1);
fswtchParam[i]->setMinimum(0);
fswtchParam[i]->setMinimum(0.1);
fswtchParam[i]->setMaximum(25.5);
fswtchParam[i]->setSingleStep(0.1);
if (modified)
Expand Down

0 comments on commit 6c3aaef

Please sign in to comment.