diff options
| author | WeiN76LQh <WeiN76LQh@github.com> | 2025-04-17 14:38:52 +0100 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2025-04-21 09:56:28 -0400 |
| commit | 9410640770fd8abc2d09c69dada698c0b690eed3 (patch) | |
| tree | 64c4613071e10c1be81c34d59252654b86793337 /view/sharedcache/ui/dsctriage.cpp | |
| parent | a828f0521163bcc713b6d31bd68921e108765f05 (diff) | |
[SharedCache] Always load image dependencies
Simple change that means an image's dependencies can be loaded via the DSC triage view whether the primary image has already been loaded or not. Sometimes I've already loaded an image and then later on decide I want to load its dependencies. Currently there is no easy way to do that in the UI.
Diffstat (limited to 'view/sharedcache/ui/dsctriage.cpp')
| -rw-r--r-- | view/sharedcache/ui/dsctriage.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/view/sharedcache/ui/dsctriage.cpp b/view/sharedcache/ui/dsctriage.cpp index 2d741807..3e334711 100644 --- a/view/sharedcache/ui/dsctriage.cpp +++ b/view/sharedcache/ui/dsctriage.cpp @@ -82,10 +82,11 @@ void DSCTriageView::loadImagesWithAddr(const std::vector<uint64_t>& addresses, b for (const uint64_t& addr : addresses) { auto image = controller->GetImageContaining(addr); - // Only try to load if we have not already. - if (image.has_value() && !controller->IsImageLoaded(*image)) + if (image.has_value()) { - images.insert({image->headerAddress, *image}); + // Only try to load if we have not already. + if (!controller->IsImageLoaded(*image)) + images.insert({image->headerAddress, *image}); // TODO: We currently only add direct dependencies, may want to make the depth configurable? if (includeDependencies) |
