mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-15 17:30:37 -06:00
undo attributes
This commit is contained in:
parent
2d3e43b998
commit
2a4474676c
@ -3197,7 +3197,6 @@
|
||||
"Content": "Dark Theme for Windows",
|
||||
"Description": "Enable/Disable Dark Mode.",
|
||||
"category": "Customize Preferences",
|
||||
"attributes": "epRestart",
|
||||
"panel": "2",
|
||||
"Order": "a100_",
|
||||
"Type": "Toggle"
|
||||
@ -3230,7 +3229,6 @@
|
||||
"Content": "Snap Window",
|
||||
"Description": "If enabled you can align windows by dragging them. | Relogin Required",
|
||||
"category": "Customize Preferences",
|
||||
"attributes": "epRestart",
|
||||
"panel": "2",
|
||||
"Order": "a104_",
|
||||
"Type": "Toggle"
|
||||
@ -3239,7 +3237,6 @@
|
||||
"Content": "Snap Assist Flyout",
|
||||
"Description": "If enabled then Snap preview is disabled when maximize button is hovered.",
|
||||
"category": "Customize Preferences",
|
||||
"attributes": "epRestart",
|
||||
"panel": "2",
|
||||
"Order": "a105_",
|
||||
"Type": "Toggle"
|
||||
@ -3248,7 +3245,6 @@
|
||||
"Content": "Snap Assist Suggestion",
|
||||
"Description": "If enabled then you will get suggestions to snap other applications in the left over spaces.",
|
||||
"category": "Customize Preferences",
|
||||
"attributes": "epRestart",
|
||||
"panel": "2",
|
||||
"Order": "a106_",
|
||||
"Type": "Toggle"
|
||||
|
@ -16,7 +16,9 @@ function Invoke-WinUtilSnapFlyout {
|
||||
}
|
||||
|
||||
$Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
|
||||
taskkill.exe /F /IM "explorer.exe"
|
||||
Set-ItemProperty -Path $Path -Name EnableSnapAssistFlyout -Value $value
|
||||
Start-Process "explorer.exe"
|
||||
} catch [System.Security.SecurityException] {
|
||||
Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception"
|
||||
} catch [System.Management.Automation.ItemNotFoundException] {
|
||||
|
@ -16,7 +16,9 @@ function Invoke-WinUtilSnapSuggestion {
|
||||
}
|
||||
# taskkill.exe /F /IM "explorer.exe"
|
||||
$Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
|
||||
taskkill.exe /F /IM "explorer.exe"
|
||||
Set-ItemProperty -Path $Path -Name SnapAssist -Value $value
|
||||
Start-Process "explorer.exe"
|
||||
} catch [System.Security.SecurityException] {
|
||||
Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception"
|
||||
} catch [System.Management.Automation.ItemNotFoundException] {
|
||||
|
@ -36,8 +36,4 @@ function Invoke-WPFToggle {
|
||||
"WPFToggleTaskbarAlignment" {Invoke-WinUtilTaskbarAlignment $ToggleStatus}
|
||||
"WPFToggleDetailedBSoD" {Invoke-WinUtilDetailedBSoD $ToggleStatus}
|
||||
}
|
||||
if ($sync.configs.tweaks.$($button).attributes -contains "epRestart") {
|
||||
taskkill.exe /F /IM "explorer.exe"
|
||||
Start-Process "explorer.exe"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user