mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-02 03:26:29 +03:00
eepp:
Don't instantiate a tooltip until it's really required by the widget (setting the tooltip text won't instantiate the tooltip). ecode: Closes SpartanJ/ecode#64 (Fix LSP rootPath initialization).
This commit is contained in:
@@ -910,7 +910,7 @@ void LSPClientPlugin::displayTooltip( UICodeEditor* editor, const LSPHover& resp
|
||||
const Vector2f& position ) {
|
||||
editor->setTooltipText( resp.contents[0].value );
|
||||
// HACK: Gets the old font style to restore it when the tooltip is hidden
|
||||
UITooltip* tooltip = editor->getTooltip();
|
||||
UITooltip* tooltip = editor->createTooltip();
|
||||
if ( tooltip == nullptr )
|
||||
return;
|
||||
mOldTextStyle = tooltip->getFontStyle();
|
||||
|
||||
Reference in New Issue
Block a user