Skip to content

Commit

Permalink
(GH-811) Add feature toggle for icon download
Browse files Browse the repository at this point in the history
This feature won't actually do anything in the OSS version of Chocolatey
GUI, but it will be used in the Chocolatey GUI Licensed Extension to
override the functionality of downloading icons.
  • Loading branch information
gep13 committed Feb 12, 2021
1 parent 6797ca6 commit bdb6568
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/ChocolateyGui.Common/Models/AppConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ public class AppConfiguration
[Feature]
public bool? HidePackageDownloadCount { get; set; }

[LocalizedDescription("SettingsView_TogglePreventAllPackageIconDownloads")]
[Feature]
public bool? PreventAllPackageIconDownloads { get; set; }

public override string ToString()
{
return @"
Expand Down
9 changes: 9 additions & 0 deletions Source/ChocolateyGui.Common/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Source/ChocolateyGui.Common/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1000,4 +1000,7 @@ Normal:
<data name="Application_OutdatedPackagesError" xml:space="preserve">
<value>Unable to serialize Outdated Packages Cache file.</value>
</data>
<data name="SettingsView_TogglePreventAllPackageIconDownloads" xml:space="preserve">
<value>Prevents the download of the icon for all package. NOTE: This feature will only work with Chocolatey for Business and the Chocolatey GUI licensed extension installed.</value>
</data>
</root>

0 comments on commit bdb6568

Please sign in to comment.