mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-07-14 23:12:49 +03:00
Minor clean up in TCPSocket and set timeout on HTTP socket connections.
LSP list view always selects first item.
This commit is contained in:
@@ -533,7 +533,6 @@ void LSPClientPlugin::createListView( UICodeEditor* editor, const std::shared_pt
|
||||
lv->addClass( "editor_listview" );
|
||||
auto pos =
|
||||
editor->getRelativeScreenPosition( editor->getDocumentRef()->getSelection().start() );
|
||||
lv->setSelection( model->index( 0, 0 ) );
|
||||
lv->setPixelsPosition( { pos.x, pos.y + editor->getLineHeight() } );
|
||||
if ( !lv->getParent()->getLocalBounds().contains(
|
||||
lv->getLocalBounds().setPosition( lv->getPixelsPosition() ) ) ) {
|
||||
@@ -554,6 +553,7 @@ void LSPClientPlugin::createListView( UICodeEditor* editor, const std::shared_pt
|
||||
ScrollBarMode::AlwaysOff );
|
||||
if ( onCreateCb )
|
||||
onCreateCb( lv );
|
||||
lv->setSelection( model->index( 0 ) );
|
||||
lv->setFocus();
|
||||
Uint32 focusCb = lv->getUISceneNode()->getUIEventDispatcher()->addFocusEventCallback(
|
||||
[lv]( const auto&, Node* focus, Node* ) {
|
||||
|
||||
Reference in New Issue
Block a user