[General]Add setting to disable elevated apps warning (#30628)

This commit is contained in:
gokcekantarci
2024-01-03 20:22:54 +03:00
committed by GitHub
parent 7c0f24df65
commit f60c4fd2f3
8 changed files with 47 additions and 1 deletions

View File

@@ -29,6 +29,10 @@ namespace Microsoft.PowerToys.Settings.UI.Library
[JsonPropertyName("is_admin")]
public bool IsAdmin { get; set; }
// Gets or sets a value indicating whether is warnings of elevated apps enabled.
[JsonPropertyName("enable_warnings_elevated_apps")]
public bool EnableWarningsElevatedApps { get; set; }
// Gets or sets theme Name.
[JsonPropertyName("theme")]
public string Theme { get; set; }
@@ -57,6 +61,7 @@ namespace Microsoft.PowerToys.Settings.UI.Library
{
Startup = false;
IsAdmin = false;
EnableWarningsElevatedApps = true;
IsElevated = false;
AutoDownloadUpdates = false;
EnableExperimentation = true;