[loading window] Should really have included this in the initial design. Now it can be indeterminate too.

This commit is contained in:
Henrik Andersson
2011-06-05 11:32:51 +02:00
parent af62e62b42
commit 167cd9238a
6 changed files with 39 additions and 11 deletions
+9 -1
View File
@@ -260,9 +260,13 @@ void SongManager::LoadStepManiaSongDir( RString sDir )
songCount += arraySongDirs.size();
}
if( songCount==0 ) return;
if( pLoadingWindow )
if( pLoadingWindow ) {
pLoadingWindow->SetIndeterminate( false );
pLoadingWindow->SetTotalWork( songCount );
}
groupIndex = 0;
songIndex = 0;
@@ -318,6 +322,10 @@ void SongManager::LoadStepManiaSongDir( RString sDir )
LoadGroupSymLinks(sDir, sGroupDirName);
}
if( pLoadingWindow ) {
pLoadingWindow->SetIndeterminate( true );
}
LoadEnabledSongsFromPref();
}