HaikuDepot: Fixed regression: selecting featured packages
Since the fVisiblePackages list in MainWindow is now also filtered by featured packages, and since the "featured" status of packages is collected asynchronously, the list needs to be updated in the package changed notification. Also, the package should only be added to the featured packages view if it is now in the visible list. Other filter criteria would not be taken into account otherwise. Fixes #11663
This commit is contained in:
parent
ff18d61427
commit
0c6df5d52e
@ -449,7 +449,10 @@ MainWindow::MessageReceived(BMessage* message)
|
||||
}
|
||||
if ((changes & PKG_CHANGED_PROMINENCE) != 0) {
|
||||
BAutolock locker(fModel.Lock());
|
||||
if (ref->IsProminent())
|
||||
// The package didn't get a chance yet to be in the
|
||||
// visible package list
|
||||
fVisiblePackages = fModel.CreatePackageList();
|
||||
if (ref->IsProminent() && fVisiblePackages.Contains(ref))
|
||||
fFeaturedPackagesView->AddPackage(ref);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user