initialize screens only if necessary

This commit is contained in:
Andrzej Rybczak
2009-06-26 18:48:00 +02:00
parent 1147795fc6
commit 450bf1b636
26 changed files with 99 additions and 41 deletions

View File

@@ -75,6 +75,7 @@ void MediaLibrary::Init()
Songs->SetGetStringFunction(SongToString);
w = Artists;
isInitialized = 1;
}
void MediaLibrary::Resize()
@@ -141,6 +142,9 @@ void MediaLibrary::SwitchTo()
Albums->SetTitle("Albums");
}
if (!isInitialized)
Init();
if (hasToBeResized)
Resize();