HaikuDepot: Contents for Local Pkg (b)
Fixes a bug where contents are not displayed for local files that are not installed. Resolves #16161 Change-Id: I27abfd78bf7882b1961f8d9c6ade30d4c15ec2ad Reviewed-on: https://review.haiku-os.org/c/haiku/+/2865 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
6b0e92ebd4
commit
16f2f8eb81
@ -302,11 +302,13 @@ PackageContentsView::SetPackage(const PackageInfoRef& package)
|
|||||||
fLastPackageState = package.Get() != NULL ? package->State() : NONE;
|
fLastPackageState = package.Get() != NULL ? package->State() : NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the package is not installed then there is no point in attempting to
|
// if the package is not installed and is not a local file on disk then
|
||||||
// populate data for it.
|
// there is no point in attempting to populate data for it.
|
||||||
|
|
||||||
if (package.Get() != NULL && package->State() == ACTIVATED)
|
if (package.Get() != NULL
|
||||||
|
&& (package->State() == ACTIVATED || package->IsLocalFile())) {
|
||||||
release_sem_etc(fContentPopulatorSem, 1, 0);
|
release_sem_etc(fContentPopulatorSem, 1, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user