Loader for demos.

This commit is contained in:
Martín Lucas Golini
2022-03-11 02:28:54 -03:00
parent 7b53115c4c
commit 1098e75aaf
3 changed files with 38 additions and 1 deletions

View File

@@ -1408,6 +1408,7 @@ void App::onCodeEditorCreated( UICodeEditor* editor, TextDocument& doc ) {
downloadFileWeb( url );
if ( mEditorSplitter->getCurEditor() )
mEditorSplitter->getCurEditor()->setFocus();
msgBox->closeWindow();
} );
} );
@@ -2430,6 +2431,10 @@ void App::init( const std::string& file, const Float& pidelDensity ) {
initProjectTreeView( file );
#if EE_PLATFORM == EE_PLATFORM_EMSCRIPTEN
downloadFileWeb( "https://raw.githubusercontent.com/SpartanJ/eepp/develop/README.md" );
#endif
mWindow->runMainLoop( &appLoop );
}
}