Browse Source

Fix typo ActiveHours, WSL, RunAsDifferentUserContext also Wrapper Config WSL

pull/222/head
iamteerawut 3 years ago
parent
commit
0169e0ece5
  1. 12
      Sophia/LTSC/Module/Sophia.psm1
  2. 14
      Sophia/PowerShell 5.1/Module/Sophia.psm1
  3. 14
      Sophia/PowerShell 7/Module/Sophia.psm1
  4. 4
      Wrapper/Config/config.json

12
Sophia/LTSC/Module/Sophia.psm1

@ -5750,14 +5750,14 @@ function NetworkDiscovery
.PARAMETER Automatically
Automatically adjust active hours for me based on daily usage
.PARAMETER Manual
.PARAMETER Manually
Manually adjust active hours for me based on daily usage
.EXAMPLE
ActiveHours -Automatically
.EXAMPLE
ActiveHours -Manual
ActiveHours -Manually
.NOTES
Machine-wide
@ -5775,10 +5775,10 @@ function ActiveHours
[Parameter(
Mandatory = $true,
ParameterSetName = "Manual"
ParameterSetName = "Manually"
)]
[switch]
$Manual
$Manually
)
switch ($PSCmdlet.ParameterSetName)
@ -5787,7 +5787,7 @@ function ActiveHours
{
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 1 -Force
}
"Manual"
"Manually"
{
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 0 -Force
}
@ -8025,7 +8025,7 @@ function RunAsDifferentUserContext
ParameterSetName = "Hide"
)]
[switch]
$Remove
$Hide
)
switch ($PSCmdlet.ParameterSetName)

14
Sophia/PowerShell 5.1/Module/Sophia.psm1

@ -7003,14 +7003,14 @@ function NetworkDiscovery
.PARAMETER Automatically
Automatically adjust active hours for me based on daily usage
.PARAMETER Manual
.PARAMETER Manually
Manually adjust active hours for me based on daily usage
.EXAMPLE
ActiveHours -Automatically
.EXAMPLE
ActiveHours -Manual
ActiveHours -Manually
.NOTES
Machine-wide
@ -7028,10 +7028,10 @@ function ActiveHours
[Parameter(
Mandatory = $true,
ParameterSetName = "Manual"
ParameterSetName = "Manually"
)]
[switch]
$Manual
$Manually
)
switch ($PSCmdlet.ParameterSetName)
@ -7040,7 +7040,7 @@ function ActiveHours
{
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 1 -Force
}
"Manual"
"Manually"
{
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 0 -Force
}
@ -7803,7 +7803,7 @@ function WSL
Write-Warning -Message $Localization.RestartWarning
}
"Disable"
"Uninstall"
{
Disable-WindowsOptionalFeature -Online -FeatureName $WSLFeatures -NoRestart
@ -11012,7 +11012,7 @@ function RunAsDifferentUserContext
ParameterSetName = "Hide"
)]
[switch]
$Remove
$Hide
)
switch ($PSCmdlet.ParameterSetName)

14
Sophia/PowerShell 7/Module/Sophia.psm1

@ -7017,14 +7017,14 @@ function NetworkDiscovery
.PARAMETER Automatically
Automatically adjust active hours for me based on daily usage
.PARAMETER Manual
.PARAMETER Manually
Manually adjust active hours for me based on daily usage
.EXAMPLE
ActiveHours -Automatically
.EXAMPLE
ActiveHours -Manual
ActiveHours -Manually
.NOTES
Machine-wide
@ -7042,10 +7042,10 @@ function ActiveHours
[Parameter(
Mandatory = $true,
ParameterSetName = "Manual"
ParameterSetName = "Manually"
)]
[switch]
$Manual
$Manually
)
switch ($PSCmdlet.ParameterSetName)
@ -7054,7 +7054,7 @@ function ActiveHours
{
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 1 -Force
}
"Manual"
"Manually"
{
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name SmartActiveHoursState -PropertyType DWord -Value 0 -Force
}
@ -7817,7 +7817,7 @@ function WSL
Write-Warning -Message $Localization.RestartWarning
}
"Disable"
"Uninstall"
{
Disable-WindowsOptionalFeature -Online -FeatureName $WSLFeatures -NoRestart
@ -11042,7 +11042,7 @@ function RunAsDifferentUserContext
ParameterSetName = "Hide"
)]
[switch]
$Remove
$Hide
)
switch ($PSCmdlet.ParameterSetName)

4
Wrapper/Config/config.json

@ -2313,14 +2313,14 @@
"Function": "WSL",
"Arg": {
"Zero": {
"Tag": "Enable",
"Tag": "Install",
"ToolTip": {
"EN": "Install the Windows Subsystem for Linux (WSL)",
"RU": "Установить подсистему Windows для Linux (WSL)"
}
},
"One": {
"Tag": "Disable",
"Tag": "Uninstall",
"ToolTip": {
"EN": "Uninstall the Windows Subsystem for Linux (WSL)",
"RU": "Удалить подсистему Windows для Linux (WSL)"

Loading…
Cancel
Save