[companion] Adjust GVAR not possible in global functions (fix #5425)

This commit is contained in:
Kilrah
2017-11-26 23:03:43 +01:00
parent caa9cd3060
commit 1c1624b8a6
+1 -1
View File
@@ -678,7 +678,7 @@ void CustomFunctionsPanel::populateFuncCB(QComboBox *b, unsigned int value)
((i==FuncSetTimer3) && firmware->getCapability(Timers) < 3) ||
((i==FuncScreenshot) && IS_HORUS(firmware->getBoard())) ||
((i>=FuncRangeCheckInternalModule && i<=FuncBindExternalModule) && (!model || !firmware->getCapability(DangerousFunctions))) ||
((i>=FuncAdjustGV1 && i<=FuncAdjustGVLast) && !firmware->getCapability(Gvars))
((i>=FuncAdjustGV1 && i<=FuncAdjustGVLast) && (!model || !firmware->getCapability(Gvars)))
) {
// skipped
// b->addItem(CustomFunctionData(AssignFunc(i)).funcToString(), i);