Properly update the outdated Rectangles, after downloading. Thanks Pk11!

This commit is contained in:
VoltZ
2019-11-07 05:16:55 +01:00
parent efdfda7d78
commit 1715b957a8
+2 -1
View File
@@ -187,6 +187,7 @@ void ScriptBrowse::Logic(u32 hDown, u32 hHeld, touchPosition touch) {
DisplayMsg(fileName); DisplayMsg(fileName);
downloadToFile(infoJson[selection]["url"], Config::ScriptPath + titleFix + ".json"); downloadToFile(infoJson[selection]["url"], Config::ScriptPath + titleFix + ".json");
infoJson[selection]["curRevision"] = infoJson[selection]["revision"];
} }
} }
@@ -197,7 +198,7 @@ void ScriptBrowse::Logic(u32 hDown, u32 hHeld, touchPosition touch) {
if (hDown & KEY_L) { if (hDown & KEY_L) {
fastMode = false; fastMode = false;
} }
if(selection < screenPos) { if(selection < screenPos) {
screenPos = selection; screenPos = selection;
} else if (selection > screenPos + ENTRIES_PER_SCREEN - 1) { } else if (selection > screenPos + ENTRIES_PER_SCREEN - 1) {