* [refac] refactor and fix disabled property undefined.

This commit is contained in:
sunhao
2025-11-10 16:53:30 +08:00
parent b787539897
commit cf88ca1cac
+1 -1
View File
@@ -207,7 +207,7 @@ class render
$selectors = parseSelectors($selectors);
foreach($selectors as $selector)
{
if(!empty($selector->command) && !in_array($selector->command, $config->zin->allowCommands)) $selector->disabled = true;
$selector->disabled = !empty($selector->command) && !in_array($selector->command, $config->zin->allowCommands);
$this->selectors[$selector->name] = $selector;
}
}