mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 01:56:31 +03:00
eepp: Added UISVGIcon class. Added Image::getInfoFromMemory.
ecode: Added "Welcome" screen.
This commit is contained in:
@@ -126,7 +126,10 @@ void UniversalLocator::hideLocateBar() {
|
||||
}
|
||||
|
||||
void UniversalLocator::updateFilesTable() {
|
||||
if ( !mLocateInput->getText().empty() ) {
|
||||
if ( !mApp->isDirTreeReady() ) {
|
||||
mLocateTable->setModel( ProjectDirectoryTree::emptyModel( getLocatorCommands() ) );
|
||||
mLocateTable->getSelection().set( mLocateTable->getModel()->index( 0 ) );
|
||||
} else if ( !mLocateInput->getText().empty() ) {
|
||||
#if EE_PLATFORM != EE_PLATFORM_EMSCRIPTEN || defined( __EMSCRIPTEN_PTHREADS__ )
|
||||
mApp->getDirTree()->asyncFuzzyMatchTree(
|
||||
mLocateInput->getText(), LOCATEBAR_MAX_RESULTS, [&]( auto res ) {
|
||||
@@ -239,8 +242,6 @@ void UniversalLocator::initLocateBar( UILocateBar* locateBar, UITextInput* locat
|
||||
showDocumentSymbol();
|
||||
} else {
|
||||
showLocateTable();
|
||||
if ( !mApp->isDirTreeReady() )
|
||||
return;
|
||||
updateFilesTable();
|
||||
}
|
||||
} );
|
||||
@@ -401,6 +402,9 @@ void UniversalLocator::showLocateBar() {
|
||||
mLocateTable->setModel(
|
||||
mApp->getDirTree()->asModel( LOCATEBAR_MAX_RESULTS, getLocatorCommands() ) );
|
||||
mLocateTable->getSelection().set( mLocateTable->getModel()->index( 0 ) );
|
||||
} else if ( !mLocateTable->getModel() ) {
|
||||
mLocateTable->setModel( ProjectDirectoryTree::emptyModel( getLocatorCommands() ) );
|
||||
mLocateTable->getSelection().set( mLocateTable->getModel()->index( 0 ) );
|
||||
}
|
||||
|
||||
updateLocateBar();
|
||||
|
||||
Reference in New Issue
Block a user