fix server settings command help text overwriting other tooltips

This commit is contained in:
dobrykafe 2024-10-03 21:55:07 +02:00
parent 29523e4972
commit 184f07a912

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(Context.CommandIsValid())
if(Context.CommandIsValid() && pLineInput->IsActive() && Ui()->HotItem() == nullptr)
Context.GetCommandHelpText(m_aTooltip, sizeof(m_aTooltip));
CUIRect ToolBar = *pRect;