[Powertoys Run] Add setting to confirm system commands (#12427)

* HTTPS by default, HTTP only if specified

* Added/Updated unit tests;Added FTPS

* Added confirmation to system messages such as shutdown, reboot, and lock

* Corrected Typo

* Added confirmation to system messages such as shutdown, reboot, and lock

* Corrected Typo

* Made changes requested by @mykhailopylyp

* Further changes per review by mykhailopylyp

* Fixes per code review
This commit is contained in:
Chris
2021-07-28 08:37:30 -05:00
committed by GitHub
parent 9731cdee67
commit 04636339ce
5 changed files with 180 additions and 24 deletions

View File

@@ -60,6 +60,24 @@ namespace Microsoft.PowerToys.Run.Plugin.System.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Show a dialog to confirm system commands.
/// </summary>
internal static string confirm_system_commands {
get {
return ResourceManager.GetString("confirm_system_commands", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Please Confirm.
/// </summary>
internal static string Microsoft_plugin_sys_confirmation {
get {
return ResourceManager.GetString("Microsoft_plugin_sys_confirmation", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Empty Recycle Bin.
/// </summary>
@@ -87,6 +105,15 @@ namespace Microsoft.PowerToys.Run.Plugin.System.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to You are about to put this computer into hibernation, are you sure?.
/// </summary>
internal static string Microsoft_plugin_sys_hibernate_confirmation {
get {
return ResourceManager.GetString("Microsoft_plugin_sys_hibernate_confirmation", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Hibernate computer.
/// </summary>
@@ -105,6 +132,15 @@ namespace Microsoft.PowerToys.Run.Plugin.System.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to You are about to lock this computer, are you sure?.
/// </summary>
internal static string Microsoft_plugin_sys_lock_confirmation {
get {
return ResourceManager.GetString("Microsoft_plugin_sys_lock_confirmation", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Lock computer.
/// </summary>
@@ -141,6 +177,15 @@ namespace Microsoft.PowerToys.Run.Plugin.System.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to You are about to restart this computer, are you sure?.
/// </summary>
internal static string Microsoft_plugin_sys_restart_computer_confirmation {
get {
return ResourceManager.GetString("Microsoft_plugin_sys_restart_computer_confirmation", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Restart computer.
/// </summary>
@@ -159,6 +204,15 @@ namespace Microsoft.PowerToys.Run.Plugin.System.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to You are about to shut down this computer, are you sure?.
/// </summary>
internal static string Microsoft_plugin_sys_shutdown_computer_confirmation {
get {
return ResourceManager.GetString("Microsoft_plugin_sys_shutdown_computer_confirmation", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Shutdown computer.
/// </summary>
@@ -177,6 +231,15 @@ namespace Microsoft.PowerToys.Run.Plugin.System.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to You are about to sign out of this computer, are you sure?.
/// </summary>
internal static string Microsoft_plugin_sys_sign_out_confirmation {
get {
return ResourceManager.GetString("Microsoft_plugin_sys_sign_out_confirmation", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Sign out of computer.
/// </summary>
@@ -195,6 +258,15 @@ namespace Microsoft.PowerToys.Run.Plugin.System.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to You are about to put this computer to sleep, are you sure?.
/// </summary>
internal static string Microsoft_plugin_sys_sleep_confirmation {
get {
return ResourceManager.GetString("Microsoft_plugin_sys_sleep_confirmation", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Put computer to sleep.
/// </summary>