Skip to content

Commit

Permalink
Merge pull request #822 from punker76/fix/GH-821
Browse files Browse the repository at this point in the history
Fix logic of IsShowOnlyPackagesWithUpdateEnabled when PreventAutomatedOutdatedPackages is not set
  • Loading branch information
gep13 authored Mar 9, 2021
2 parents 1bff2bb + 9b2c0c6 commit 7c94a89
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 7c94a89

Please sign in to comment.