mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 00:25:35 +08:00
refactor: Directly get HTML help string from parser
The context returns CSimpleCommandParser::commandsHtmlHelp() as well
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user