[loading window] Should really have included this in the initial design. Now it can be indeterminate too.
This commit is contained in:
+9
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user