diff --git a/Source/ChocolateyGui.Common.Windows/ViewModels/LocalSourceViewModel.cs b/Source/ChocolateyGui.Common.Windows/ViewModels/LocalSourceViewModel.cs index 5305b887b..24f38da39 100644 --- a/Source/ChocolateyGui.Common.Windows/ViewModels/LocalSourceViewModel.cs +++ b/Source/ChocolateyGui.Common.Windows/ViewModels/LocalSourceViewModel.cs @@ -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.