File tree Expand file tree Collapse file tree
UniGetUI.PackageEngine.Managers.WinGet/Helpers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,7 +150,8 @@ protected override OperationVeredict _getOperationResult(
150150
151151 if ( uintCode == 0x8A15002B )
152152 {
153- IgnoredUpdatesDatabase . Add ( IgnoredUpdatesDatabase . GetIgnoredIdForPackage ( package ) , package . Version ) ;
153+ if ( Settings . Get ( "IgnoreUpdatesNotApplicable" ) )
154+ IgnoredUpdatesDatabase . Add ( IgnoredUpdatesDatabase . GetIgnoredIdForPackage ( package ) , package . Version ) ;
154155 return OperationVeredict . Failure ;
155156 }
156157
Original file line number Diff line number Diff line change @@ -166,9 +166,16 @@ public SettingsPage()
166166 _ = PEInterface . InstalledPackagesLoader . ReloadPackages ( ) ;
167167 } ;
168168
169+ CheckboxCard WinGet_HideNonApplicableUpdates = new ( )
170+ {
171+ Text = CoreTools . Translate ( "Add updates that fail with a 'no applicable update found' to the ignored updates list" ) ,
172+ SettingName = "IgnoreUpdatesNotApplicable"
173+ } ;
174+
169175 ExtraSettingsCards [ PEInterface . WinGet ] . Add ( WinGet_EnableTroubleshooter ) ;
170176 ExtraSettingsCards [ PEInterface . WinGet ] . Add ( WinGet_ResetWindowsIPackageManager ) ;
171177 ExtraSettingsCards [ PEInterface . WinGet ] . Add ( WinGet_UseBundled ) ;
178+ ExtraSettingsCards [ PEInterface . WinGet ] . Add ( WinGet_HideNonApplicableUpdates ) ;
172179
173180 // ----------------------------------------------------------------------------------------
174181
You can’t perform that action at this time.
0 commit comments