mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-03-26 13:52:57 +01:00
Cleaned up pre-page building
This commit is contained in:
@@ -457,11 +457,16 @@ Page *RetroFE::LoadPage(std::string collectionName)
|
||||
|
||||
PageBuilder pb(layoutName, collectionName, Config, &FC);
|
||||
page = pb.BuildPage();
|
||||
page->SetItems(collection);
|
||||
page->Start();
|
||||
|
||||
if(page)
|
||||
if(!page)
|
||||
{
|
||||
Logger::Write(Logger::ZONE_ERROR, "RetroFE", "Could not create page for " + collectionName);
|
||||
}
|
||||
else
|
||||
{
|
||||
page->SetItems(collection);
|
||||
page->Start();
|
||||
|
||||
PageChain.push_back(page);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user