refactor: Directly get HTML help string from parser

The context returns CSimpleCommandParser::commandsHtmlHelp() as well
This commit is contained in:
Lars Toenning
2024-03-24 15:36:02 +01:00
parent 607c57ebb8
commit e5755b7d28
7 changed files with 1 additions and 30 deletions

View File

@@ -81,12 +81,9 @@ namespace BlackGui::Components
void CCommandInput::setCommandToolTip()
{
const bool context = (sGui && sGui->getIContextApplication());
if (m_showToolTip)
{
this->setToolTip(context ?
sGui->getIContextApplication()->dotCommandsHtmlHelp() :
CSimpleCommandParser::commandsHtmlHelp());
this->setToolTip(CSimpleCommandParser::commandsHtmlHelp());
}
else
{