mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/code– Fix typo in python_toolbox
This commit is contained in:
@@ -440,7 +440,7 @@ PythonToolbox::PythonToolbox() :
|
||||
const ToolboxMessageTree * PythonToolbox::moduleChildren(const char * name, int * numberOfNodes) const {
|
||||
assert(numberOfNodes != nullptr);
|
||||
for (ToolboxMessageTree t : modulesChildren) {
|
||||
if (strcmp(I18n::translate(t.label()), name)) {
|
||||
if (strcmp(I18n::translate(t.label()), name) == 0) {
|
||||
*numberOfNodes = t.numberOfChildren();
|
||||
assert(*numberOfNodes > 0);
|
||||
return static_cast<const ToolboxMessageTree *>(t.children(0));
|
||||
|
||||
Reference in New Issue
Block a user