Skip to content

Commit

Permalink
(chocolateyGH-821) Fix logic of IsShowOnlyPackagesWithUpdateEnabled w…
Browse files Browse the repository at this point in the history
…hen PreventAutomatedOutdatedPackages is not set

The IsShowOnlyPackagesWithUpdateEnabled will be false if the PreventAutomatedOutdatedPackagesCheck is not set. So you will not see any updated packages without forcing the search for it.
  • Loading branch information
punker76 committed Mar 8, 2021
1 parent 1bff2bb commit 9b2c0c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ private async Task CheckOutdated(bool forceCheckForOutdated)
// outdated packages. We should only enable the checkbox here when: (or)
// 1. the "Prevent Automated Outdated Packages Check" is disabled
// 2. forced a check for outdated packages.
IsShowOnlyPackagesWithUpdateEnabled = forceCheckForOutdated || (!_configService.GetEffectiveConfiguration().PreventAutomatedOutdatedPackagesCheck ?? false);
IsShowOnlyPackagesWithUpdateEnabled = forceCheckForOutdated || !(_configService.GetEffectiveConfiguration().PreventAutomatedOutdatedPackagesCheck ?? false);

// Force invalidating the command stuff.
// This helps us to prevent disabled buttons after executing this routine.
Expand Down

0 comments on commit 9b2c0c6

Please sign in to comment.