mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-01-06 14:08:56 +01:00
Cleaned up pre-page building
This commit is contained in:
parent
7f0e4e4a38
commit
c9ab172865
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user