initialize screens only if necessary
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user