Skip to content

Commit

Permalink
fixed listdir log error message
Browse files Browse the repository at this point in the history
  • Loading branch information
d3cod3 committed Nov 20, 2020
1 parent 20b1190 commit d9b40a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ofApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ void ofApp::setup(){
// ASSET LIBRARY
assetWatcher.start();
selectedFile = "";
isAssetFolderInited = false;
isAssetLibraryON = false;
isOverAssetLibrary = false;
isDeleteModalON = false;
Expand Down Expand Up @@ -277,7 +278,10 @@ void ofApp::update(){
}
visualProgramming->setRetina(isRetina);
fileDialog.setIsRetina(isRetina);
}

if(ofGetElapsedTimeMillis() > 3000 && !isAssetFolderInited){
isAssetFolderInited = true;
assetFolder.reset();
assetFolder.listDir(ofToDataPath("temp/data/",true));
assetFolder.sort();
Expand Down
1 change: 1 addition & 0 deletions src/ofApp.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class ofApp : public ofBaseApp{
bool isAssetLibraryON;
bool isOverAssetLibrary;
bool isAddToPatchOver;
bool isAssetFolderInited;

// CODE EDITOR
TextEditor::LanguageDefinition bashLang;
Expand Down

0 comments on commit d9b40a9

Please sign in to comment.