Skip to content
This repository was archived by the owner on Jan 4, 2022. It is now read-only.

Commit

Permalink
Download info before titles
Browse files Browse the repository at this point in the history
Downloading titles before information causes the information not to load. Restarting the application or updating titles and info again fixes this.
  • Loading branch information
huntereb2 authored Sep 13, 2018
1 parent f862eea commit 10dd4ac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/scenes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,23 +129,23 @@ void update_scene_t::draw(frame_t& frame)

struct coord pos = {45, 96};

if (getUpdateList())
if (getUpdateInfo())
{
g_titlesLoaded = loadTitles();
g_infoLoaded = loadInfo();
}
else
{
pos = DrawText(frame, fontLarge, 45, pos.y, themeCurrent.textColor, "Could not download updated list from server\nCheck config.conf or internet connection\n\n");
pos = DrawText(frame, fontLarge, 45, pos.y, themeCurrent.textColor, "Could not download updated info JSON from Server\nCheck config.conf or internet connection\n\n");
error = true;
}

if (getUpdateInfo())
if (getUpdateList())
{
g_infoLoaded = loadInfo();
g_titlesLoaded = loadTitles();
}
else
{
pos = DrawText(frame, fontLarge, 45, pos.y, themeCurrent.textColor, "Could not download updated info JSON from Server\nCheck config.conf or internet connection\n\n");
pos = DrawText(frame, fontLarge, 45, pos.y, themeCurrent.textColor, "Could not download updated list from server\nCheck config.conf or internet connection\n\n");
error = true;
}

Expand Down

0 comments on commit 10dd4ac

Please sign in to comment.