initialize screens only if necessary
This commit is contained in:
@@ -64,6 +64,7 @@ void PlaylistEditor::Init()
|
||||
Content->SetGetStringFunctionUserData(&Config.song_list_format);
|
||||
|
||||
w = Playlists;
|
||||
isInitialized = 1;
|
||||
}
|
||||
|
||||
void PlaylistEditor::Resize()
|
||||
@@ -97,6 +98,9 @@ void PlaylistEditor::SwitchTo()
|
||||
if (myScreen == this)
|
||||
return;
|
||||
|
||||
if (!isInitialized)
|
||||
Init();
|
||||
|
||||
if (hasToBeResized)
|
||||
Resize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user