mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 07:44:24 +02:00
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:
parent
0ead95eb86
commit
659330e81a
@ -87,9 +87,9 @@ void ToolBar::initHideButtonsConf(TiXmlDocument* toolButtonsDocRoot, ToolBarButt
|
|||||||
{
|
{
|
||||||
for (int i = 0; i < arraySize; ++i)
|
for (int i = 0; i < arraySize; ++i)
|
||||||
_toolbarStdButtonsConfArray[i] = false;
|
_toolbarStdButtonsConfArray[i] = false;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
for (int i = 0; i < arraySize; ++i)
|
for (int i = 0; i < arraySize; ++i)
|
||||||
_toolbarStdButtonsConfArray[i] = true;
|
_toolbarStdButtonsConfArray[i] = true;
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ void ToolBar::initHideButtonsConf(TiXmlDocument* toolButtonsDocRoot, ToolBarButt
|
|||||||
childNode = childNode->NextSibling(L"Button"))
|
childNode = childNode->NextSibling(L"Button"))
|
||||||
{
|
{
|
||||||
TiXmlElement* element = childNode->ToElement();
|
TiXmlElement* element = childNode->ToElement();
|
||||||
int cmdID =0;
|
int cmdID = 0;
|
||||||
const wchar_t* cmdIDStr = element->Attribute(L"id", &cmdID);
|
const wchar_t* cmdIDStr = element->Attribute(L"id", &cmdID);
|
||||||
|
|
||||||
int index = 0;
|
int index = 0;
|
||||||
@ -113,6 +113,7 @@ void ToolBar::initHideButtonsConf(TiXmlDocument* toolButtonsDocRoot, ToolBarButt
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Plugin toolbar button
|
// Plugin toolbar button
|
||||||
TiXmlNode* pluginToolButtons = toolButtons->FirstChild(L"Plugin");
|
TiXmlNode* pluginToolButtons = toolButtons->FirstChild(L"Plugin");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user