Refactored game list refresh logic to use existing RefreshGameListAsync() method

Replaced manual list view initialization and checks with a call to the existing RefreshGameListAsync() method, simplifying the refresh logic and ensuring that the game list is properly refreshed when a filter is active and a game is updated (e.g., when installing an already installed game (updating) while in 'update available' view, the game status now correctly changes to reflect that it has been updated)
This commit is contained in:
jp64k
2025-12-17 00:31:25 +01:00
parent f528520024
commit 2f843bc458

View File

@@ -3667,15 +3667,9 @@ If the problem persists, visit our Telegram (https://t.me/VRPirates) or Discord
{
changeTitle("Refreshing games list, please wait...\n");
showAvailableSpace();
listAppsBtn();
if (!updateAvailableClicked && !upToDate_Clicked && !NeedsDonation_Clicked && !settings.NodeviceMode && !gamesQueueList.Any())
{
// Reset the initialized flag so initListView rebuilds _allItems with current install status
_allItemsInitialized = false;
_galleryDataSource = null;
initListView(false);
}
await RefreshGameListAsync();
if (settings.EnableMessageBoxes)
{
ShowPrcOutput(output);
@@ -3789,13 +3783,8 @@ If the problem persists, visit our Telegram (https://t.me/VRPirates) or Discord
showAvailableSpace();
listAppsBtn();
if (!updateAvailableClicked && !upToDate_Clicked && !NeedsDonation_Clicked && !settings.NodeviceMode && !gamesQueueList.Any())
{
// Reset the initialized flag so initListView rebuilds _allItems with current install status
_allItemsInitialized = false;
_galleryDataSource = null;
initListView(false);
}
await RefreshGameListAsync();
if (settings.EnableMessageBoxes)
{
ShowPrcOutput(output);