Merge pull request #9105 from dobrykafe/pr-fix-server-settings-tooltip

Fix server settings command help text overwriting other tooltips
This commit is contained in:
Dennis Felsing 2024-10-03 21:54:10 +00:00 committed by GitHub
commit 70afd94982
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -317,7 +317,7 @@ void CEditor::DoMapSettingsEditBox(CMapSettingsBackend::CContext *pContext, cons
}; };
// If we have a valid command, display the help in the tooltip // If we have a valid command, display the help in the tooltip
if(Context.CommandIsValid()) if(Context.CommandIsValid() && pLineInput->IsActive() && Ui()->HotItem() == nullptr)
Context.GetCommandHelpText(m_aTooltip, sizeof(m_aTooltip)); Context.GetCommandHelpText(m_aTooltip, sizeof(m_aTooltip));
CUIRect ToolBar = *pRect; CUIRect ToolBar = *pRect;