Fix plugin button hidings being ignored bug in toolbar button conf

Fix plugin button hidings settings being ignored bug in toolbar button config,
if the value of "hideAll" attribute of "Standard" node in "toolbarButtonsConf.xml" is set to "yes".

Fix #16280, close #16285
This commit is contained in:
Don Ho 2025-03-15 21:28:42 +01:00
parent 0ead95eb86
commit 659330e81a

View File

@ -87,9 +87,9 @@ void ToolBar::initHideButtonsConf(TiXmlDocument* toolButtonsDocRoot, ToolBarButt
{
for (int i = 0; i < arraySize; ++i)
_toolbarStdButtonsConfArray[i] = false;
return;
}
else
{
for (int i = 0; i < arraySize; ++i)
_toolbarStdButtonsConfArray[i] = true;
@ -113,6 +113,7 @@ void ToolBar::initHideButtonsConf(TiXmlDocument* toolButtonsDocRoot, ToolBarButt
}
}
}
}
// Plugin toolbar button
TiXmlNode* pluginToolButtons = toolButtons->FirstChild(L"Plugin");