Store: Make Retry download the listing again

It only recreated the views, which showed the same connection error.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-22 10:55:30 +02:00
1 parent 8a7b64daa3
commit 3e46790a00
2 files changed
+7

No files matched your search

+6
View File
@@ -354,7 +354,12 @@ void ProductView::OnLaunchClick(UI::EventParams &e) {
StoreScreen::StoreScreen() : UISimpleBaseDialogScreen(Path(), SimpleDialogFlags::Default) {
lang_ = g_Config.sLanguageIni;
StartListingDownload();
}
void StoreScreen::StartListingDownload() {
loading_ = true;
connectionError_ = false;
std::string indexPath = StoreBaseUrl() + "index.json";
const char *acceptMime = "application/json, */*; q=0.8";
@@ -532,6 +537,7 @@ void StoreScreen::OnGameLaunch(UI::EventParams &e) {
}
void StoreScreen::OnRetry(UI::EventParams &e) {
StartListingDownload();
RecreateViews();
}