winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d46aea143abbfdeacb0750363def7edf90c57bde
parent d70adfc3854b79c9ca82bae9a448db6a1db9d2b4
Author: Easton Pillay <easton@planeteaston.com>
Date:   Fri, 15 Oct 2021 20:10:10 -0500

The source column is no longer shown in the table if a source was specified (list/upgrade). (#1598)


Diffstat:
Msrc/AppInstallerCLICore/Workflows/WorkflowBase.cpp | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/AppInstallerCLICore/Workflows/WorkflowBase.cpp b/src/AppInstallerCLICore/Workflows/WorkflowBase.cpp @@ -658,6 +658,8 @@ namespace AppInstaller::CLI::Workflow }); int availableUpgradesCount = 0; + auto &source = context.Get<Execution::Data::Source>(); + bool shouldShowSource = source->IsComposite() && source->GetAvailableSources().size() > 1; for (const auto& match : searchResult.Matches) { @@ -690,7 +692,7 @@ namespace AppInstaller::CLI::Workflow match.Package->GetProperty(PackageProperty::Id), installedVersion->GetProperty(PackageVersionProperty::Version), availableVersion, - sourceName + shouldShowSource ? sourceName : ""s }); } }