mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
[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:
@@ -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>
|
||||
|
||||
@@ -117,6 +117,13 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="confirm_system_commands" xml:space="preserve">
|
||||
<value>Show a dialog to confirm system commands</value>
|
||||
</data>
|
||||
<data name="Microsoft_plugin_sys_confirmation" xml:space="preserve">
|
||||
<value>Please Confirm</value>
|
||||
<comment>Request confirmation</comment>
|
||||
</data>
|
||||
<data name="Microsoft_plugin_sys_emptyrecyclebin" xml:space="preserve">
|
||||
<value>Empty Recycle Bin</value>
|
||||
<comment>This should align to the action in Windows of emptying the recycle bin on your computer.</comment>
|
||||
@@ -129,6 +136,10 @@
|
||||
<value>Hibernate</value>
|
||||
<comment>This should align to the action in Windows of a hibernating your computer.</comment>
|
||||
</data>
|
||||
<data name="Microsoft_plugin_sys_hibernate_confirmation" xml:space="preserve">
|
||||
<value>You are about to put this computer into hibernation, are you sure?</value>
|
||||
<comment>This should align to the action in Windows of a hibernating your computer.</comment>
|
||||
</data>
|
||||
<data name="Microsoft_plugin_sys_hibernate_description" xml:space="preserve">
|
||||
<value>Hibernate computer</value>
|
||||
<comment>This should align to the action in Windows of a hibernating your computer.</comment>
|
||||
@@ -137,6 +148,10 @@
|
||||
<value>Lock</value>
|
||||
<comment>This should align to the action in Windows of a locking your computer.</comment>
|
||||
</data>
|
||||
<data name="Microsoft_plugin_sys_lock_confirmation" xml:space="preserve">
|
||||
<value>You are about to lock this computer, are you sure?</value>
|
||||
<comment>This should align to the action in Windows of a locking your computer.</comment>
|
||||
</data>
|
||||
<data name="Microsoft_plugin_sys_lock_description" xml:space="preserve">
|
||||
<value>Lock computer</value>
|
||||
<comment>This should align to the action in Windows of a locking your computer.</comment>
|
||||
@@ -153,6 +168,10 @@
|
||||
<value>Restart</value>
|
||||
<comment>This should align to the action in Windows of a restarting your computer.</comment>
|
||||
</data>
|
||||
<data name="Microsoft_plugin_sys_restart_computer_confirmation" xml:space="preserve">
|
||||
<value>You are about to restart this computer, are you sure?</value>
|
||||
<comment>This should align to the action in Windows of a restarting your computer.</comment>
|
||||
</data>
|
||||
<data name="Microsoft_plugin_sys_restart_computer_description" xml:space="preserve">
|
||||
<value>Restart computer</value>
|
||||
<comment>This should align to the action in Windows of a restarting your computer.</comment>
|
||||
@@ -161,6 +180,10 @@
|
||||
<value>Shutdown</value>
|
||||
<comment>This should align to the action in Windows of a shutting down your computer.</comment>
|
||||
</data>
|
||||
<data name="Microsoft_plugin_sys_shutdown_computer_confirmation" xml:space="preserve">
|
||||
<value>You are about to shut down this computer, are you sure?</value>
|
||||
<comment>This should align to the action in Windows of a shutting down your computer.</comment>
|
||||
</data>
|
||||
<data name="Microsoft_plugin_sys_shutdown_computer_description" xml:space="preserve">
|
||||
<value>Shutdown computer</value>
|
||||
<comment>This should align to the action in Windows of a shutting down your computer.</comment>
|
||||
@@ -169,6 +192,10 @@
|
||||
<value>Sign out</value>
|
||||
<comment>This should align to the action in windows of a signing out back to the lock screen.</comment>
|
||||
</data>
|
||||
<data name="Microsoft_plugin_sys_sign_out_confirmation" xml:space="preserve">
|
||||
<value>You are about to sign out of this computer, are you sure?</value>
|
||||
<comment>This should align to the action in windows of a signing out back to the lock screen.</comment>
|
||||
</data>
|
||||
<data name="Microsoft_plugin_sys_sign_out_description" xml:space="preserve">
|
||||
<value>Sign out of computer</value>
|
||||
<comment>This should align to the action in windows of a signing out back to the lock screen.</comment>
|
||||
@@ -177,6 +204,10 @@
|
||||
<value>Sleep</value>
|
||||
<comment>This should align to the action in Windows of a making your computer go to sleep.</comment>
|
||||
</data>
|
||||
<data name="Microsoft_plugin_sys_sleep_confirmation" xml:space="preserve">
|
||||
<value>You are about to put this computer to sleep, are you sure?</value>
|
||||
<comment>This should align to the action in Windows of a making your computer go to sleep.</comment>
|
||||
</data>
|
||||
<data name="Microsoft_plugin_sys_sleep_description" xml:space="preserve">
|
||||
<value>Put computer to sleep</value>
|
||||
<comment>This should align to the action in Windows of a making your computer go to sleep.</comment>
|
||||
|
||||
Reference in New Issue
Block a user