Skip to content

Commit bfbb643

Browse files
authored
Update-WPFTweaksEndTaskOnTaskbar (#3714)
* Update tweaks.json * Syntax fix on WPFTweaksEndTaskOnTaskbar * Merge branch 'ChrisTitusTech:main' into Update-WPFTweaksEndTaskOnTaskbar
1 parent 067ec31 commit bfbb643

File tree

1 file changed

+7
-24
lines changed

1 file changed

+7
-24
lines changed

config/tweaks.json

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2450,31 +2450,14 @@
24502450
"category": "Essential Tweaks",
24512451
"panel": "1",
24522452
"Order": "a006_",
2453-
"InvokeScript": [
2454-
"$path = \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings\"
2455-
$name = \"TaskbarEndTask\"
2456-
$value = 1
2457-
2458-
# Ensure the registry key exists
2459-
if (-not (Test-Path $path)) {
2460-
New-Item -Path $path -Force | Out-Null
2461-
}
2462-
2463-
# Set the property, creating it if it doesn't exist
2464-
New-ItemProperty -Path $path -Name $name -PropertyType DWord -Value $value -Force | Out-Null"
2465-
],
2466-
"UndoScript": [
2467-
"$path = \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings\"
2468-
$name = \"TaskbarEndTask\"
2469-
$value = 0
2470-
2471-
# Ensure the registry key exists
2472-
if (-not (Test-Path $path)) {
2473-
New-Item -Path $path -Force | Out-Null
2453+
"registry": [
2454+
{
2455+
"Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings",
2456+
"Name": "TaskbarEndTask",
2457+
"Type": "DWord",
2458+
"Value": "1",
2459+
"OriginalValue": "<RemoveEntry>"
24742460
}
2475-
2476-
# Set the property, creating it if it doesn't exist
2477-
New-ItemProperty -Path $path -Name $name -PropertyType DWord -Value $value -Force | Out-Null"
24782461
],
24792462
"link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/endtaskontaskbar"
24802463
},

0 commit comments

Comments
 (0)