HaikuDepot: Clear package info view if package not listed
If the visible packages list does not contain the currently showing package anymore after filter parameters have changed, clear the package info area. This also means that when installed packages are turned off, which means a package will disappear from the list after being installed, the package will no longer keep showing in the info area. This situation is less likely with the change that installed packages will now show by default and the user has to explicitly turn them off.
This commit is contained in:
@@ -653,6 +653,9 @@ MainWindow::_AdoptModel()
|
||||
const PackageInfoRef& selectedPackage = fPackageInfoView->Package();
|
||||
fFeaturedPackagesView->SelectPackage(selectedPackage);
|
||||
fPackageListView->SelectPackage(selectedPackage);
|
||||
|
||||
if (!fVisiblePackages.Contains(fPackageInfoView->Package()))
|
||||
fPackageInfoView->Clear();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user