mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-25 15:53:11 +03:00
Fixed a bug when opening folders in ecode.
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
#include <algorithm>
|
||||
#include <args/args.hxx>
|
||||
|
||||
Clock globalClock;
|
||||
bool firstFrame = true;
|
||||
App* appInstance = nullptr;
|
||||
|
||||
void appLoop() {
|
||||
@@ -356,6 +358,10 @@ void App::mainLoop() {
|
||||
SceneManager::instance()->draw();
|
||||
mConsole->draw( elapsed );
|
||||
mWindow->display();
|
||||
if ( firstFrame ) {
|
||||
Log::info( "First frame took: %.2fms", globalClock.getElapsed().asMilliseconds() );
|
||||
firstFrame = false;
|
||||
}
|
||||
} else {
|
||||
mWindow->getInput()->waitEvent( Milliseconds( mWindow->hasFocus() ? 16 : 100 ) );
|
||||
}
|
||||
@@ -1610,16 +1616,13 @@ void App::closeEditors() {
|
||||
std::vector<UICodeEditor*> editors = mEditorSplitter->getAllEditors();
|
||||
for ( auto editor : editors ) {
|
||||
UITabWidget* tabWidget = mEditorSplitter->tabWidgetFromEditor( editor );
|
||||
tabWidget->removeTab( (UITab*)editor->getData() );
|
||||
tabWidget->removeTab( (UITab*)editor->getData(), true, true );
|
||||
}
|
||||
mCurrentProject = "";
|
||||
mDirTree = nullptr;
|
||||
if ( mFileSystemListener )
|
||||
mFileSystemListener->setDirTree( mDirTree );
|
||||
|
||||
// Force to update the closed tabs.
|
||||
SceneManager::instance()->update();
|
||||
|
||||
mProjectDocConfig = ProjectDocumentConfig( mConfig.doc );
|
||||
updateProjectSettingsMenu();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user