Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RAPPS] Refreshing the Installed list should read everything from the registry #5676

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

whindsaks
Copy link
Contributor

The Installed list must re-enumerate the registry when F5 is pressed because just adding the same items from the cached list is pointless.

Most of the code is related to restoring the selected item and as a bonus, works in the other modes as well.

@binarymaster binarymaster added enhancement For PRs with an enhancement/new feature. bugfix For bugfix PRs. labels Sep 9, 2023
@binarymaster binarymaster added this to New PRs in ReactOS PRs via automation Sep 9, 2023
if (hList)
{
Item.iItem = ListView_GetNextItem(hList, -1, LVNI_FOCUSED);
ListView_GetItem(hList, &Item);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use the convenience functions from the m_Listview itself?
stuff like m_ListView->GetItemData etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a MFC guy I guess.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

This PR is stale because it received no updates in the last 4 months. Without removing the stale label, or commenting on this ticket it will be closed in 2 weeks.

@github-actions github-actions bot added the no-pr-activity PRs with no further activity from the author. label Jan 10, 2024
ReactOS PRs automation moved this from New PRs to Approved by reviewers Jan 10, 2024
@github-actions github-actions bot removed the no-pr-activity PRs with no further activity from the author. label Jan 11, 2024
@binarymaster binarymaster removed this from Approved by reviewers in ReactOS PRs May 3, 2024
@HBelusca HBelusca requested a review from TAN-Gaming May 9, 2024 20:12
@@ -479,7 +479,7 @@ CMainWindow::ShowAboutDlg()
VOID
CMainWindow::OnCommand(WPARAM wParam, LPARAM lParam)
{
BOOL bReload = TRUE;
const BOOL bReload = TRUE;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not then just put TRUE whenever bReload is used in this function?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the original code does this for ease of updating in the future ?

- This PR is now only about restoring the selection since the refresh fix was added in another PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix For bugfix PRs. enhancement For PRs with an enhancement/new feature.
Projects
None yet
5 participants