Skip to content

Commit e3c4b21

Browse files
authored
[RAPPS] Force download online apps catalog in ID_RESETDB (reactos#9242)
Since the database is downloaded lazily, clicking on "Update Database" button won't re-download the online catalog if "Available apps" view is not active. This patch forces the download even when the "Installed apps" is active. CORE-20205
1 parent f6fcb59 commit e3c4b21

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎base/applications/rapps/gui.cpp‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,9 @@ CMainWindow::OnCommand(WPARAM wParam, LPARAM lParam)
620620
CUpdateDatabaseMutex lock;
621621
m_Db->RemoveCached();
622622
UpdateApplicationsList(SelectedEnumType, bReload);
623+
/* Force database update even if "Available apps" view is not active */
624+
if (!IsAvailableEnum(SelectedEnumType))
625+
m_Db->UpdateAvailable();
623626
break;
624627
}
625628

0 commit comments

Comments
 (0)